~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to drizzled/replication/utility.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:
33
33
 
34
34
  switch (type(col)) {
35
35
  case DRIZZLE_TYPE_NEWDECIMAL:
36
 
    length= my_decimal_get_binary_size(m_field_metadata[col] >> 8, 
 
36
    length= my_decimal_get_binary_size(m_field_metadata[col] >> 8,
37
37
                                       m_field_metadata[col] & 0xff);
38
38
    break;
39
39
  case DRIZZLE_TYPE_DOUBLE:
124
124
    /*
125
125
      Check the slave's field size against that of the master.
126
126
    */
127
 
    if (!error && 
 
127
    if (!error &&
128
128
        !table->field[col]->compatible_field_size(field_metadata(col)))
129
129
    {
130
130
      error= 1;
135
135
               "column size."), col,
136
136
               table->field[col]->pack_length_from_metadata(
137
137
                                    m_field_metadata[col]),
138
 
               tsh->db.str, tsh->table_name.str, 
 
138
               tsh->db.str, tsh->table_name.str,
139
139
               table->field[col]->row_pack_length());
140
140
      rli->report(ERROR_LEVEL, ER_BINLOG_ROW_WRONG_TABLE_DEF,
141
141
                  ER(ER_BINLOG_ROW_WRONG_TABLE_DEF), buf);