box: pass statement being rolled back (if any) to `priv_grant`
In scope of #9893 we are going to run statement `on_rollback` triggers before rolling back the corresponding statement. During rollback of DDL in the `_priv` space, the database is accessed from `user_reload_privs` to reload user privileges, so we need it to account for the current statement being rolled back: i.e., the new tuple that was introduced (if any) must not be used, while the old tuple (if any) must be used. Needed for #9893 NO_CHANGELOG=<refactoring> NO_DOC=<refactoring>
Showing
- src/box/alter.cc 9 additions, 10 deletionssrc/box/alter.cc
- src/box/user.cc 64 additions, 19 deletionssrc/box/user.cc
- src/box/user.h 5 additions, 4 deletionssrc/box/user.h
- test/box-luatest/rollback_ddl_on__priv_space_test.lua 79 additions, 0 deletionstest/box-luatest/rollback_ddl_on__priv_space_test.lua
Loading
Please register or sign in to comment