~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-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
#include <vector>
86
86
#include <string>
87
87
 
88
 
#include "drizzled/internal/my_sys.h" /* for my_sync */
 
88
#include "drizzled/internal/my_sys.h" /* for internal::my_sync */
89
89
 
90
90
#include <drizzled/session.h>
91
91
#include <drizzled/set_var.h>
318
318
  switch (sysvar_transaction_log_sync_method)
319
319
  {
320
320
  case SYNC_METHOD_EVERY_WRITE:
321
 
    return my_sync(log_file, 0);
 
321
    return internal::my_sync(log_file, 0);
322
322
  case SYNC_METHOD_EVERY_SECOND:
323
323
    {
324
324
      time_t now_time= time(NULL);
325
325
      if (last_sync_time <= (now_time - 1))
326
326
      {
327
327
        last_sync_time= now_time;
328
 
        return my_sync(log_file, 0);
 
328
        return internal::my_sync(log_file, 0);
329
329
      }
330
330
      return 0;
331
331
    }
565
565
                           2,
566
566
                           0);
567
567
 
568
 
static drizzle_sys_var* system_variables[]= {
 
568
static drizzle_sys_var* sys_variables[]= {
569
569
  DRIZZLE_SYSVAR(enable),
570
570
  DRIZZLE_SYSVAR(truncate_debug),
571
571
  DRIZZLE_SYSVAR(log_file),
574
574
  NULL
575
575
};
576
576
 
577
 
DRIZZLE_PLUGIN(init, deinit, NULL, system_variables);
 
577
DRIZZLE_PLUGIN(init, deinit, NULL, sys_variables);