mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added support of thd->tx_read_only
Moved timestamp handling from all handler::write() methods in the storage engines to handler::ha_write sql/handler.cc: Added PSI_CALL's
This commit is contained in:
@ -1455,6 +1455,7 @@ end:
|
||||
else
|
||||
{
|
||||
ulong saved_master_access;
|
||||
bool save_tx_read_only;
|
||||
|
||||
thd->set_query(sp_sql.c_ptr_safe(), sp_sql.length());
|
||||
|
||||
@ -1466,9 +1467,12 @@ end:
|
||||
|
||||
saved_master_access= thd->security_ctx->master_access;
|
||||
thd->security_ctx->master_access |= SUPER_ACL;
|
||||
save_tx_read_only= thd->tx_read_only;
|
||||
thd->tx_read_only= false;
|
||||
|
||||
ret= Events::drop_event(thd, dbname, name, FALSE);
|
||||
|
||||
thd->tx_read_only= save_tx_read_only;
|
||||
thd->security_ctx->master_access= saved_master_access;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user