~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/open_tables_state.h

  • Committer: Brian Aker
  • Date: 2010-05-18 15:49:50 UTC
  • Revision ID: brian@gaz-20100518154950-qhctxu6lvvnyxy9i
Simplify out Open_tables_state() backup/restore (no longer needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
  uint32_t current_tablenr;
77
77
 
78
78
  /*
79
 
    Flags with information about the open tables state.
80
 
  */
81
 
  bool backups_available;
82
 
 
83
 
  /*
84
79
    This constructor serves for creation of Open_tables_state instances
85
80
    which are used as backup storage.
86
81
  */
87
 
  Open_tables_state() : backups_available(false) { }
 
82
  Open_tables_state() { }
88
83
  virtual ~Open_tables_state() {}
89
84
 
90
85
  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
86
};
104
87
 
105
88
} /* namespace drizzled */