~mordred/drizzle/add-drizzle-namespace

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.cc

  • Committer: Brian Aker
  • Date: 2009-05-03 22:35:33 UTC
  • mfrom: (997.2.26 mordred)
  • Revision ID: brian@gaz-20090503223533-lv7lwqelv08dnv2j
Merge of Monty's code

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
static bool sysvar_logging_gearman_enable= false;
32
32
static char* sysvar_logging_gearman_host= NULL;
 
33
static char* sysvar_logging_gearman_function= NULL;
33
34
 
34
35
static gearman_client_st gearman_client;
35
36
 
224
225
    char job_handle[GEARMAN_JOB_HANDLE_SIZE];
225
226
  
226
227
    (void) gearman_client_do_background(&gearman_client,
227
 
                                        "drizzlelog",
 
228
                                        sysvar_logging_gearman_function,
228
229
                                        NULL,
229
230
                                        (void *) msgbuf,
230
231
                                        (size_t) msgbuf_len,
307
308
                          N_("Hostname for logging to a Gearman server"),
308
309
                          NULL, /* check func */
309
310
                          NULL, /* update func*/
310
 
                          NULL /* default */);
 
311
                          "localhost" /* default */);
 
312
 
 
313
static DRIZZLE_SYSVAR_STR(
 
314
                          function,
 
315
                          sysvar_logging_gearman_function,
 
316
                          PLUGIN_VAR_READONLY,
 
317
                          N_("Gearman Function to send logging to"),
 
318
                          NULL, /* check func */
 
319
                          NULL, /* update func*/
 
320
                          "drizzlelog" /* default */);
311
321
 
312
322
static struct st_mysql_sys_var* logging_gearman_system_variables[]= {
313
323
  DRIZZLE_SYSVAR(enable),
314
324
  DRIZZLE_SYSVAR(host),
 
325
  DRIZZLE_SYSVAR(function),
315
326
  NULL
316
327
};
317
328