~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/rpl_reporting.cc

  • Committer: Jim Winstead
  • Date: 2008-07-19 02:56:45 UTC
  • mto: (202.1.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 207.
  • Revision ID: jimw@mysql.com-20080719025645-w2pwytebgzusjzjb
Various fixes to enable compilation on Mac OS X, and remove the glib dependency.
Temporarily disables tab-completion in the drizzle client until an appropriate
autoconf check can be added/enabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <drizzled/server_includes.h>
 
1
 
 
2
#include "mysql_priv.h"
2
3
#include "rpl_reporting.h"
3
4
 
4
5
void
8
9
  void (*report_function)(const char *, ...);
9
10
  char buff[MAX_SLAVE_ERRMSG];
10
11
  char *pbuff= buff;
11
 
  uint32_t pbuffsize= sizeof(buff);
 
12
  uint pbuffsize= sizeof(buff);
12
13
  va_list args;
13
14
  va_start(args, msg);
14
15
 
40
41
  va_end(args);
41
42
 
42
43
  /* If the msg string ends with '.', do not add a ',' it would be ugly */
43
 
  report_function(_("Slave %s: %s%s Error_code: %d"),
 
44
  report_function("Slave %s: %s%s Error_code: %d",
44
45
                  m_thread_name, pbuff,
45
 
                  (pbuff[0] && *(strchr(pbuff, '\0')-1) == '.') ? "" : ",",
 
46
                  (pbuff[0] && *(strend(pbuff)-1) == '.') ? "" : ",",
46
47
                  err_code);
47
48
}