~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/event_observer.cc

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * 2010-05-12
22
22
 */
23
23
 
24
 
#include <config.h>
 
24
#include "config.h"
25
25
 
26
26
#include <string>
27
27
#include <vector>
28
28
 
29
 
#include <drizzled/session.h>
30
 
#include <drizzled/table_list.h>
31
 
#include <drizzled/table/instance.h>
32
 
#include <drizzled/module/registry.h>
33
 
#include <drizzled/plugin/event_observer.h>
 
29
#include "drizzled/session.h"
 
30
#include "drizzled/table_list.h"
 
31
#include "drizzled/table/instance.h"
 
32
#include "drizzled/module/registry.h"
 
33
#include "drizzled/plugin/event_observer.h"
34
34
#include <drizzled/util/functors.h>
35
35
#include <algorithm>
36
36
 
430
430
    return EventData::callEventObservers();
431
431
  }
432
432
 
433
 
  bool SessionEventData::hasEvents(Session &in_session)
434
 
  {
435
 
    return (in_session.getSessionObservers() != NULL);
436
 
  }
437
 
 
438
433
  //--------
439
434
  bool SchemaEventData::callEventObservers()
440
435
  {
456
451
    return EventData::callEventObservers();
457
452
  }
458
453
 
459
 
  bool TableEventData::hasEvents(Table &in_table)
460
 
  {
461
 
    return (in_table.getMutableShare()->getTableObservers() != NULL);
462
 
  }
463
 
 
464
454
  /*==========================================================*/
465
455
  /* Static meathods called by drizzle to notify interested plugins 
466
456
   * of a schema event.