~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/serialize/replication_event_writer.cc

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

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;