~thomir-deactivatedaccount/drizzle/drizzle-fix-bug653747

« back to all changes in this revision

Viewing changes to drizzled/main.cc

  • Committer: Brian Aker
  • Date: 2010-10-10 02:07:52 UTC
  • mfrom: (1827.2.3 staging)
  • Revision ID: brian@tangent.org-20101010020752-ktv73isay5dxtvp3
Merge in switch on table_share_instance inheritance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
#include "drizzled/tztime.h"
60
60
#include "drizzled/signal_handler.h"
61
61
#include "drizzled/replication_services.h"
62
 
#include "drizzled/transaction_services.h"
63
62
 
64
63
using namespace drizzled;
65
64
using namespace std;
325
324
                PANDORA_RELEASE_VERSION, COMPILATION_COMMENT);
326
325
 
327
326
 
328
 
  TransactionServices &transaction_services= TransactionServices::singleton();
329
 
 
330
 
  /* Send server startup event */
331
 
  if ((session= new Session(plugin::Listen::getNullClient())))
332
 
  {
333
 
    transaction_services.sendStartupEvent(session);
334
 
    session->lockForDelete();
335
 
    delete session;
336
 
  }
337
 
 
338
 
 
339
327
  /* Listen for new connections and start new session for each connection
340
328
     accepted. The listen.getClient() method will return NULL when the server
341
329
     should be shutdown. */
352
340
      Session::unlink(session);
353
341
  }
354
342
 
355
 
  /* Send server shutdown event */
356
 
  if ((session= new Session(plugin::Listen::getNullClient())))
357
 
  {
358
 
    transaction_services.sendShutdownEvent(session);
359
 
    session->lockForDelete();
360
 
    delete session;
361
 
  }
362
 
 
363
343
  LOCK_thread_count.lock();
364
344
  select_thread_in_use=0;                       // For close_connections
365
345
  LOCK_thread_count.unlock();