~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/instance/shared.h

  • Committer: Brian Aker
  • Date: 2011-02-22 04:19:44 UTC
  • mto: (2192.1.1 drizzle-staging)
  • mto: This revision was merged to the branch mainline in revision 2193.
  • Revision ID: brian@tangent.org-20110222041944-furz1h252ecz7mpd
Merge in modifications such that we check both schema and table for
replication option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
         const identifier::Table &identifier,
57
57
         char *path_arg= NULL, uint32_t path_length_arg= 0); // Shares for cache
58
58
 
 
59
  Shared(const identifier::Table &identifier, message::schema::shared_ptr schema_message);
 
60
 
59
61
  Shared(const identifier::Table &identifier); // Used by placeholder
60
62
 
61
63
  ~Shared();
87
89
    event_observers= observers;
88
90
  }
89
91
 
90
 
  virtual bool replicate() const
91
 
  {
92
 
    if (getTableMessage()->options().has_dont_replicate() and getTableMessage()->options().dont_replicate())
93
 
      return false;
94
 
 
95
 
    return true;
96
 
  }
 
92
  virtual bool is_replicated() const;
97
93
 
98
94
private:
99
95
  boost::mutex mutex;                /* For locking the share  */
 
96
  drizzled::message::schema::shared_ptr _schema;
100
97
 
101
98
  /* 
102
99
    event_observers is a class containing all the event plugins that have