~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

Simple renames of plugin::StorageEngine methods for XA interaction to meet our style guidelines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
   * Implementing classes should override these to provide savepoint
186
186
   * functionality.
187
187
   */
188
 
  virtual int savepoint_set_hook(Session *, NamedSavepoint &) { return 0; }
189
 
 
190
 
  virtual int savepoint_rollback_hook(Session *, NamedSavepoint &) { return 0; }
191
 
 
192
 
  virtual int savepoint_release_hook(Session *, NamedSavepoint &) { return 0; }
 
188
  virtual int doSetSavepoint(Session *, NamedSavepoint &) { return 0; }
 
189
 
 
190
  virtual int doRollbackToSavepoint(Session *, NamedSavepoint &) { return 0; }
 
191
 
 
192
  virtual int doReleaseSavepoint(Session *, NamedSavepoint &) { return 0; }
193
193
 
194
194
public:
195
195
 
286
286
    NOTE 'all' is also false in auto-commit mode where 'end of statement'
287
287
    and 'real commit' mean the same event.
288
288
  */
289
 
  virtual int  commit(Session *, bool)
290
 
  {
291
 
    return 0;
292
 
  }
293
 
 
294
 
  virtual int  rollback(Session *, bool)
295
 
  {
296
 
    return 0;
297
 
  }
298
 
 
299
 
  /*
300
 
    The void * points to an uninitialized storage area of requested size
301
 
    (see savepoint_offset description)
302
 
  */
303
 
  int savepoint_set(Session *session, NamedSavepoint &sp)
304
 
  {
305
 
    return savepoint_set_hook(session, sp);
306
 
  }
307
 
 
308
 
  /*
309
 
    The void * points to a storage area, that was earlier passed
310
 
    to the savepoint_set call
311
 
  */
312
 
  int savepoint_rollback(Session *session, NamedSavepoint &sp)
313
 
  {
314
 
     return savepoint_rollback_hook(session, sp);
315
 
  }
316
 
 
317
 
  int savepoint_release(Session *session, NamedSavepoint &sp)
318
 
  {
319
 
    return savepoint_release_hook(session, sp);
 
289
  virtual int commit(Session *, bool)
 
290
  {
 
291
    return 0;
 
292
  }
 
293
 
 
294
  virtual int rollback(Session *, bool)
 
295
  {
 
296
    return 0;
 
297
  }
 
298
 
 
299
  int setSavepoint(Session *session, NamedSavepoint &sp)
 
300
  {
 
301
    return doSetSavepoint(session, sp);
 
302
  }
 
303
 
 
304
  int rollbackToSavepoint(Session *session, NamedSavepoint &sp)
 
305
  {
 
306
     return doRollbackToSavepoint(session, sp);
 
307
  }
 
308
 
 
309
  int releaseSavepoint(Session *session, NamedSavepoint &sp)
 
310
  {
 
311
    return doReleaseSavepoint(session, sp);
320
312
  }
321
313
 
322
314
  virtual int  prepare(Session *, bool) { return 0; }
323
315
  virtual int  recover(XID *, uint32_t) { return 0; }
324
 
  virtual int  commit_by_xid(XID *) { return 0; }
325
 
  virtual int  rollback_by_xid(XID *) { return 0; }
 
316
  virtual int  commitByXid(XID *) { return 0; }
 
317
  virtual int  rollbackByXid(XID *) { return 0; }
326
318
  virtual Cursor *create(TableShare &, drizzled::memory::Root *)= 0;
327
319
  /* args: path */
328
320
  virtual void drop_database(char*) { }