~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message.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:
47
47
const std::string &type(drizzled::message::Table::ForeignKeyConstraint::ForeignKeyMatchOption type);
48
48
const std::string &type(drizzled::message::Table::TableType type);
49
49
 
 
50
template<class T> inline bool is_replicated(const T& reference)
 
51
{
 
52
  if (reference.has_replication_options() and
 
53
      reference.replication_options().has_dont_replicate() and 
 
54
      reference.replication_options().dont_replicate())
 
55
  {
 
56
    return false;
 
57
  }
 
58
 
 
59
  return true;
 
60
}
 
61
 
 
62
template<class T> inline bool is_replicated(const T*& ptr)
 
63
{
 
64
  if (ptr and
 
65
      ptr->has_replication_options() and 
 
66
      ptr->replication_options().has_dont_replicate() and 
 
67
      ptr->replication_options().dont_replicate())
 
68
  {
 
69
    return false;
 
70
  }
 
71
 
 
72
  return true;
 
73
}
 
74
 
50
75
#if 0
51
76
std::ostream& operator<<(std::ostream& output, const message::Transaction &message);
52
77
std::ostream& operator<<(std::ostream& output, const message::Table &message);