mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Backport of:
---------------------------------------------------------- revno: 2617.23.20 committer: Konstantin Osipov <kostja@sun.com> branch nick: mysql-6.0-runtime timestamp: Wed 2009-03-04 16:31:31 +0300 message: WL#4284 "Transactional DDL locking" Review comments: "Objectify" the MDL API. MDL_request and MDL_context still need manual construction and destruction, since they are used in environment that is averse to constructors/destructors.
This commit is contained in:
@ -780,7 +780,7 @@ struct st_savepoint {
|
||||
uint length;
|
||||
Ha_trx_info *ha_list;
|
||||
/** Last acquired lock before this savepoint was set. */
|
||||
MDL_LOCK_TICKET *mdl_savepoint;
|
||||
MDL_ticket *mdl_savepoint;
|
||||
};
|
||||
|
||||
enum xa_states {XA_NOTR=0, XA_ACTIVE, XA_IDLE, XA_PREPARED, XA_ROLLBACK_ONLY};
|
||||
@ -983,8 +983,8 @@ public:
|
||||
*/
|
||||
uint state_flags;
|
||||
|
||||
MDL_CONTEXT mdl_context;
|
||||
MDL_CONTEXT handler_mdl_context;
|
||||
MDL_context mdl_context;
|
||||
MDL_context handler_mdl_context;
|
||||
|
||||
/**
|
||||
This constructor initializes Open_tables_state instance which can only
|
||||
@ -1015,8 +1015,8 @@ public:
|
||||
locked_tables_mode= LTM_NONE;
|
||||
state_flags= 0U;
|
||||
m_reprepare_observer= NULL;
|
||||
mdl_context_init(&mdl_context, thd);
|
||||
mdl_context_init(&handler_mdl_context, thd);
|
||||
mdl_context.init(thd);
|
||||
handler_mdl_context.init(thd);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user