1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Backport of:

------------------------------------------------------------
revno: 2630.4.39
committer: Dmitry Lenev <dlenev@mysql.com>
branch nick: mysql-6.0-3726-w2
timestamp: Thu 2008-06-26 13:08:27 +0400
message:
  Fix warnings about passing pointer to not fully-initialized THD
  object to constructor of base Open_tables_state classe, which
  appeared on Windows and were introduced by one of the patches
  implementing WL#3726 "DDL locking for all metadata objects".
This commit is contained in:
Konstantin Osipov
2009-12-03 14:12:53 +03:00
parent ef15a335b3
commit 45a5d79713
2 changed files with 17 additions and 11 deletions

View File

@ -984,13 +984,22 @@ public:
MDL_CONTEXT mdl_context;
MDL_CONTEXT handler_mdl_context;
/*
This constructor serves for creation of Open_tables_state instances
which are used as backup storage.
/**
This constructor initializes Open_tables_state instance which can only
be used as backup storage. To prepare Open_tables_state instance for
operations which open/lock/close tables (e.g. open_table()) one has to
call init_open_tables_state().
*/
Open_tables_state() : state_flags(0U) { }
Open_tables_state(THD *thd, ulong version_arg);
/**
Prepare Open_tables_state instance for operations dealing with tables.
*/
void init_open_tables_state(THD *thd, ulong version_arg)
{
reset_open_tables_state(thd);
version= version_arg;
}
void set_open_tables_state(Open_tables_state *state)
{