~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2010-10-10 19:32:58 UTC
  • Revision ID: brian@tangent.org-20101010193258-uvwhrqqpbd2e065x
Added support for pre/post triggers (this removes the need for the current
logging system I believe).

Add test cases to existing triggers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
#include "drizzled/module/registry.h"
68
68
#include "drizzled/module/load_list.h"
69
69
 
 
70
#include "drizzled/plugin/event_observer.h"
 
71
 
70
72
#include <google/protobuf/stubs/common.h>
71
73
 
72
74
#if TIME_WITH_SYS_TIME
651
653
  getSessionList().erase(remove(getSessionList().begin(),
652
654
                         getSessionList().end(),
653
655
                         session));
 
656
  if (unlikely(plugin::EventObserver::disconnectSession(*session)))
 
657
  {
 
658
    // We should do something about an error...
 
659
  }
654
660
 
655
661
  delete session;
656
662
  LOCK_thread_count.unlock();