~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_reporting.cc

  • Committer: Monty Taylor
  • Date: 2008-08-04 08:36:15 UTC
  • mto: (261.2.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 262.
  • Revision ID: monty@inaugust.com-20080804083615-x1es88h39th0uwer
Added three more files worth of stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
#include "mysql_priv.h"
3
3
#include "rpl_reporting.h"
 
4
#include <libdrizzle/gettext.h>
4
5
 
5
6
void
6
7
Slave_reporting_capability::report(loglevel level, int err_code,
41
42
  va_end(args);
42
43
 
43
44
  /* If the msg string ends with '.', do not add a ',' it would be ugly */
44
 
  report_function("Slave %s: %s%s Error_code: %d",
 
45
  report_function(_("Slave %s: %s%s Error_code: %d"),
45
46
                  m_thread_name, pbuff,
46
47
                  (pbuff[0] && *(strend(pbuff)-1) == '.') ? "" : ",",
47
48
                  err_code);