~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/transaction_log/background_worker.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
#include "config.h"
60
60
#include <drizzled/gettext.h>
61
61
#include <drizzled/errmsg_print.h>
62
 
 
 
62
#include <drizzled/definitions.h>
 
63
#include <errno.h>
63
64
 
64
65
#include "transaction_log.h"
65
66
#include "background_worker.h"
70
71
  int error;
71
72
  if ((error= pthread_create(&thread, NULL, collectTransactionLogStats, 0)))
72
73
  {
 
74
    char errmsg[STRERROR_MAX];
 
75
    strerror_r(errno, errmsg, sizeof(errmsg));
73
76
    drizzled::errmsg_printf(ERRMSG_LVL_ERROR,
74
77
                            _("Unable to create background worker thread. "
75
78
                              "Got error %s.\n"),
76
 
                  strerror(error));
 
79
                  errmsg);
77
80
    return true;
78
81
  }
79
82
  return false;