• Konstantin Osipov's avatar
    Backport of: · 31baae3f
    Konstantin Osipov authored
    ------------------------------------------------------------
    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".
    
    sql/sql_class.cc:
      Moved code preparing Open_tables_state instance for operations
      which open/lock/close tables from class constructor to
      init_open_tables_state() method. This allows us to move such
      initialization of base Open_table_state instance in THD class
      constructor from base classes initialization section to
      constructor's body and thus to get rid of warnings about
      about passing pointer to not fully-initialized THD object
      to base class constructor.
    sql/sql_class.h:
      Moved code preparing Open_tables_state instance for operations
      which open/lock/close tables from class constructor to
      init_open_tables_state() method. This allows us to move such
      initialization of base Open_table_state instance in THD class
      constructor from base classes initialization section to
      constructor's body and thus to get rid of warnings about
      about passing pointer to not fully-initialized THD object
      to base class constructor.
    31baae3f
sql_class.cc 112 KB