~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/serialize/replication_event_writer.cc

  • Committer: Brian Aker
  • Date: 2008-12-06 23:57:32 UTC
  • mfrom: (656.1.10 devel)
  • Revision ID: brian@tangent.org-20081206235732-jx228bczpvmxu8ww
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
static uint64_t query_id= 0;
10
10
char transaction_id[37];
11
11
 
12
 
/* 
 
12
/*
13
13
  Example script for reader a Drizzle master replication list.
14
14
*/
15
15
 
109
109
  value->add_value("6");
110
110
}
111
111
 
112
 
int main(int argc, char* argv[]) 
 
112
int main(int argc, char* argv[])
113
113
{
114
114
  GOOGLE_PROTOBUF_VERIFY_VERSION;
115
115
 
126
126
  write_update(list.add_event(), transaction_id);
127
127
 
128
128
  fstream output(argv[1], ios::out | ios::trunc | ios::binary);
129
 
  if (!list.SerializeToOstream(&output)) 
 
129
  if (!list.SerializeToOstream(&output))
130
130
  {
131
131
    cerr << "Failed to write replication event log." << endl;
132
132
    return -1;