~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log.cc

  • Committer: Monty Taylor
  • Date: 2009-03-25 19:20:47 UTC
  • mto: This revision was merged to the branch mainline in revision 964.
  • Revision ID: mordred@inaugust.com-20090325192047-h9s6w4zjyth9o7ff
Made StorageEngine name private. Added constructor param and accessor method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#include <drizzled/session.h>
41
41
#include <drizzled/handler.h>
42
42
 
 
43
#include <string>
 
44
 
 
45
using namespace std;
 
46
 
 
47
static const string engine_name("binlog");
 
48
 
43
49
StorageEngine *binlog_engine= NULL;
44
50
 
45
51
/*
69
75
class BinlogEngine : public StorageEngine
70
76
{
71
77
public:
72
 
  BinlogEngine() : StorageEngine() {}
 
78
  BinlogEngine(string name_arg) : StorageEngine(name_arg) {}
73
79
 
74
80
  virtual int close_connection(Session *)
75
81
  {
262
268
 
263
269
  if (binlog_engine == NULL)
264
270
  {
265
 
    binlog_engine= new BinlogEngine();
 
271
    binlog_engine= new BinlogEngine(engine_name);
266
272
    binlog_engine->state= SHOW_OPTION_YES;
267
273
    binlog_engine->savepoint_offset= sizeof(my_off_t);
268
274
    binlog_engine->flags= HTON_NOT_USER_SELECTABLE | HTON_HIDDEN;