~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbxt/src/datalog_xt.cc

  • Committer: Paul McCullagh
  • Date: 2010-09-16 15:26:41 UTC
  • mto: (1771.3.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1785.
  • Revision ID: paul.mccullagh@primebase.org-20100916152641-9mwb1hga0qwz41nu
Merged with 1.1 trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1261
1261
         */
1262
1262
        dlb_data_log->dlf_log_eof += size;
1263
1263
#ifdef DEBUG
1264
 
        if (log_offset + size > dlb_max_write_offset)
 
1264
        if (log_offset + (xtLogOffset) size > (xtLogOffset) dlb_max_write_offset)
1265
1265
                dlb_max_write_offset = log_offset + size;
1266
1266
#endif
1267
1267
        dlb_flush_required = TRUE;
1303
1303
        if (!xt_pwrite_file(dlb_data_log->dlf_log_file, log_offset, size, data, &thread->st_statistics.st_data, thread))
1304
1304
                return FAILED;
1305
1305
#ifdef DEBUG
1306
 
        if (log_offset + size > dlb_max_write_offset)
 
1306
        if (log_offset + (xtLogOffset) size > (xtLogOffset) dlb_max_write_offset)
1307
1307
                dlb_max_write_offset = log_offset + size;
1308
1308
#endif
1309
1309
        dlb_flush_required = TRUE;