~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/command_log/command_log.cc

Fixes from my bugs branch for uppercase bug and 32-bit Solaris size_t truncation

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
   */
130
130
  string buffer= string(""); /* Buffer we will write serialized command to */
131
131
 
132
 
  uint64_t length;
 
132
  size_t length;
133
133
  ssize_t written;
134
134
  off_t cur_offset;
135
135
 
136
136
  to_apply->SerializeToString(&buffer);
137
137
 
138
 
  /* We force to uint64_t since this is what is reserved as the length header in the written log */
139
 
  length= (uint64_t) buffer.length(); 
 
138
  length= buffer.length(); 
140
139
 
141
140
  /*
142
141
   * Do an atomic increment on the offset of the log file position