~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/transaction_log/transaction_log.cc

  • Committer: Brian Aker
  • Date: 2011-01-12 06:45:23 UTC
  • mto: (2073.1.4 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: brian@tangent.org-20110112064523-rqhptaqbph22qmj1
RemoveĀ customĀ error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
 * as a skeleton and a springboard.
70
70
 */
71
71
 
72
 
#include <config.h>
 
72
#include "config.h"
73
73
#include "transaction_log.h"
74
74
 
75
75
#include <sys/stat.h>
211
211
  {
212
212
    char errmsg[STRERROR_MAX];
213
213
    strerror_r(errno, errmsg, sizeof(errmsg));
214
 
    errmsg_printf(error::ERROR, 
 
214
    errmsg_printf(ERRMSG_LVL_ERROR, 
215
215
                  _("Failed to write full size of log entry.  Tried to write %" PRId64
216
216
                    " bytes at offset %" PRId64 ", but only wrote %" PRId32 " bytes.  Error: %s\n"), 
217
217
                  static_cast<int64_t>(data_length),
230
230
 
231
231
  if (unlikely(error_code != 0))
232
232
  {
233
 
    sql_perror(_("Failed to sync log file."));
 
233
    char errmsg[STRERROR_MAX];
 
234
    strerror_r(errno, errmsg, sizeof(errmsg));
 
235
    errmsg_printf(ERRMSG_LVL_ERROR, 
 
236
                  _("Failed to sync log file. Got error: %s\n"), 
 
237
                  errmsg);
234
238
  }
235
 
 
236
239
  return cur_offset;
237
240
}
238
241