~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/transaction_log/background_worker.cc

  • Committer: Brian Aker
  • Date: 2011-02-01 02:51:01 UTC
  • mto: (2132.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2134.
  • Revision ID: brian@tangent.org-20110201025101-yaj5kkdk2towo6ou
Merge in error message rework. Many error messages are fixed in this patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
  int error;
72
72
  if ((error= pthread_create(&thread, NULL, collectTransactionLogStats, 0)))
73
73
  {
74
 
    char errmsg[STRERROR_MAX];
75
 
    strerror_r(errno, errmsg, sizeof(errmsg));
76
 
    drizzled::errmsg_printf(ERRMSG_LVL_ERROR,
77
 
                            _("Unable to create background worker thread. "
78
 
                              "Got error %s.\n"),
79
 
                  errmsg);
 
74
    drizzled::sql_perror("Unable to create background worker thread.");
80
75
    return true;
81
76
  }
82
77
  return false;