~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Jay Pipes
  • Date: 2010-03-05 03:13:24 UTC
  • mfrom: (1273.1.32 bug530870)
  • mto: This revision was merged to the branch mainline in revision 1325.
  • Revision ID: jpipes@serialcoder-20100305031324-bto9lkg9ygj9udet
Merge fixes for LP Bug 530870

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
public:
237
237
  virtual void print_error(int error, myf errflag, Table& table);
238
238
 
239
 
  /*
240
 
    each storage engine has it's own memory area (actually a pointer)
241
 
    in the session, for storing per-connection information.
242
 
    It is accessed as
243
 
 
244
 
      session->ha_data[xxx_engine.slot]
245
 
 
246
 
   slot number is initialized by MySQL after xxx_init() is called.
247
 
  */
248
 
  uint32_t slot;
249
 
 
250
 
  inline uint32_t getSlot (void) { return slot; }
251
 
  inline uint32_t getSlot (void) const { return slot; }
252
 
  inline void setSlot (uint32_t value) { slot= value; }
253
 
 
254
239
  bool is_user_selectable() const
255
240
  {
256
241
    return not flags.test(HTON_BIT_NOT_USER_SELECTABLE);
273
258
  }
274
259
 
275
260
  /*
276
 
    StorageEngine methods:
277
 
 
278
 
    close_connection is only called if
279
 
    session->ha_data[xxx_engine.slot] is non-zero, so even if you don't need
280
 
    this storage area - set it to something, so that MySQL would know
281
 
    this storage engine was accessed in this connection
282
 
  */
 
261
   * Called during Session::cleanup() for all engines
 
262
   */
283
263
  virtual int close_connection(Session  *)
284
264
  {
285
265
    return 0;