~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/transaction_log/transaction_log.cc

  • Committer: Monty Taylor
  • Date: 2010-03-06 02:08:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1381.
  • Revision ID: mordred@inaugust.com-20100306020813-c37d0b39004nl1zf
Remove plugin deinit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
480
480
  return 0;
481
481
}
482
482
 
483
 
static int deinit(drizzled::plugin::Context &context)
484
 
{
485
 
  /* Cleanup the transaction log itself */
486
 
  if (transaction_log)
487
 
  {
488
 
    context.remove(transaction_log);
489
 
    delete transaction_log;
490
 
    delete transaction_log_index;
491
 
 
492
 
    /* Cleanup the DATA_DICTIONARY views */
493
 
    context.remove(transaction_log_tool);
494
 
    delete transaction_log_tool;
495
 
    context.remove(transaction_log_entries_tool);
496
 
    delete transaction_log_entries_tool;
497
 
    context.remove(transaction_log_transactions_tool);
498
 
    delete transaction_log_transactions_tool;
499
 
 
500
 
    /* Cleanup module UDFs */
501
 
    context.remove(print_transaction_message_func_factory);
502
 
    delete print_transaction_message_func_factory;
503
 
    context.remove(hexdump_transaction_message_func_factory);
504
 
    delete hexdump_transaction_message_func_factory;
505
 
  }
506
 
 
507
 
  return 0;
508
 
}
509
 
 
510
483
static void set_truncate_debug(Session *,
511
484
                               drizzle_sys_var *, 
512
485
                               void *, 
575
548
  NULL
576
549
};
577
550
 
578
 
DRIZZLE_PLUGIN(init, deinit, sys_variables);
 
551
DRIZZLE_PLUGIN(init, sys_variables);