~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/filtered_replicator/filtered_replicator.h

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
                     const char *in_tab_filters);
47
47
 
48
48
  /** Destructor */
49
 
  ~FilteredReplicator() 
50
 
  {
51
 
    if (sch_re)
52
 
    {
53
 
      pcre_free(sch_re);
54
 
    }
55
 
    if (tab_re)
56
 
    {
57
 
      pcre_free(tab_re);
58
 
    }
59
 
 
60
 
    pthread_mutex_destroy(&sch_vector_lock);
61
 
    pthread_mutex_destroy(&tab_vector_lock);
62
 
    pthread_mutex_destroy(&sysvar_sch_lock);
63
 
    pthread_mutex_destroy(&sysvar_tab_lock);
64
 
  }
65
 
 
66
 
  /**
67
 
   * Returns whether the replicator is active
68
 
   */
69
 
  virtual bool isEnabled() const;
70
 
 
71
 
  virtual void enable();
72
 
  virtual void disable();
 
49
  ~FilteredReplicator();
73
50
 
74
51
  /**
75
52
   * Replicate a Transaction message to an Applier.
84
61
   * the supplied message to their own controlled memory storage
85
62
   * area.
86
63
   *
 
64
   * @param Applier to replicate to
 
65
   * @param Session descriptor
87
66
   * @param Transaction message to be replicated
88
67
   */
89
 
  void replicate(drizzled::plugin::TransactionApplier *in_applier, 
90
 
                 drizzled::message::Transaction &to_replicate);
 
68
  drizzled::plugin::ReplicationReturnCode
 
69
  replicate(drizzled::plugin::TransactionApplier *in_applier,
 
70
            drizzled::Session &in_session,
 
71
            drizzled::message::Transaction &to_replicate);
91
72
  
92
73
  /**
93
74
   * Populate the vector of schemas to filter from the