~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/open_tables_state.h

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:27:09 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032709-oyvfrc6eb8fzj0mr
fix docs warning: docs/unlock.rst:2: (WARNING/2) Title underline too short.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    base tables that were opened with @see open_tables().
41
41
  */
42
42
  Table *open_tables;
 
43
 
43
44
  /**
44
45
    List of temporary tables used by this thread. Contains user-level
45
46
    temporary tables, created with CREATE TEMPORARY TABLE, and
63
64
    the 'LOCK_TABLES' chapter of the MySQL manual.
64
65
    See also lock_tables() for details.
65
66
  */
66
 
  DRIZZLE_LOCK *lock;
 
67
  DrizzleLock *lock;
67
68
 
68
69
  /*
69
70
    CREATE-SELECT keeps an extra lock for the table being
70
71
    created. This field is used to keep the extra lock available for
71
72
    lower level routines, which would otherwise miss that lock.
72
73
   */
73
 
  DRIZZLE_LOCK *extra_lock;
 
74
  DrizzleLock *extra_lock;
74
75
 
75
76
  uint64_t version;
76
77
  uint32_t current_tablenr;
77
78
 
78
79
  /*
79
 
    Flags with information about the open tables state.
80
 
  */
81
 
  bool backups_available;
82
 
 
83
 
  /*
84
80
    This constructor serves for creation of Open_tables_state instances
85
81
    which are used as backup storage.
86
82
  */
87
 
  Open_tables_state() : backups_available(false) { }
 
83
  Open_tables_state() :
 
84
    open_tables(0),
 
85
    temporary_tables(0),
 
86
    derived_tables(0),
 
87
    lock(0),
 
88
    extra_lock(0),
 
89
    version(0),
 
90
    current_tablenr(0)
 
91
  { }
88
92
  virtual ~Open_tables_state() {}
89
93
 
90
94
  Open_tables_state(uint64_t version_arg);
91
 
 
92
 
  void set_open_tables_state(Open_tables_state *state)
93
 
  {
94
 
    *this= *state;
95
 
  }
96
 
 
97
 
  void reset_open_tables_state()
98
 
  {
99
 
    open_tables= temporary_tables= derived_tables= NULL;
100
 
    extra_lock= lock= NULL;
101
 
    backups_available= false;
102
 
  }
103
95
};
104
96
 
105
97
} /* namespace drizzled */