~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/slave.cc

  • Committer: Brian Aker
  • Date: 2008-07-13 22:45:08 UTC
  • Revision ID: brian@tangent.org-20080713224508-hb20z4okblotb39a
longlong replacement

Show diffs side-by-side

added added

removed removed

Lines of Context:
1300
1300
        last_master_timestamp == 0 (an "impossible" timestamp 1970) is a
1301
1301
        special marker to say "consider we have caught up".
1302
1302
      */
1303
 
      protocol->store((longlong)(mi->rli.last_master_timestamp ?
 
1303
      protocol->store((int64_t)(mi->rli.last_master_timestamp ?
1304
1304
                                 max(0, time_diff) : 0));
1305
1305
    }
1306
1306
    else
3246
3246
 
3247
3247
  TODO
3248
3248
    - Change the log file information to a binary format to avoid calling
3249
 
      longlong2str.
 
3249
      int64_t2str.
3250
3250
 
3251
3251
  RETURN VALUES
3252
3252
    0   ok
3266
3266
  my_b_seek(file, 0L);
3267
3267
  pos=strmov(buff, rli->group_relay_log_name);
3268
3268
  *pos++='\n';
3269
 
  pos=longlong2str(rli->group_relay_log_pos, pos, 10);
 
3269
  pos=int64_t2str(rli->group_relay_log_pos, pos, 10);
3270
3270
  *pos++='\n';
3271
3271
  pos=strmov(pos, rli->group_master_log_name);
3272
3272
  *pos++='\n';
3273
 
  pos=longlong2str(rli->group_master_log_pos, pos, 10);
 
3273
  pos=int64_t2str(rli->group_master_log_pos, pos, 10);
3274
3274
  *pos='\n';
3275
3275
  if (my_b_write(file, (uchar*) buff, (size_t) (pos-buff)+1))
3276
3276
    error=1;