~drizzle-pbxt/drizzle/drizzle-pbxt-2

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/session_scheduler.cc

  • Committer: Paul McCullagh
  • Date: 2009-11-10 14:18:39 UTC
  • mfrom: (1038.1.7 drizzle-pbxt-pre-merge)
  • Revision ID: paul.mccullagh@primebase.org-20091110141839-2j3k43b17ag6f605
Merged Drizzle trunk and PBXT 1.0.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/session.h>
23
23
#include <drizzled/gettext.h>
24
24
#include <drizzled/errmsg_print.h>
 
25
#include <drizzled/plugin/client.h>
25
26
#include <event.h>
26
 
/* API for connecting, logging in to a drizzled server */
27
 
#include <drizzled/connect.h>
28
27
#include "session_scheduler.h"
29
28
 
30
29
/* Prototype */
38
37
{
39
38
  memset(&io_event, 0, sizeof(struct event));
40
39
 
41
 
  event_set(&io_event, parent_session->protocol->fileDescriptor(), EV_READ,
 
40
  event_set(&io_event, parent_session->client->getFileDescriptor(), EV_READ,
42
41
            libevent_io_callback, (void*)parent_session);
43
42
 
44
43
  session= parent_session;
52
51
{
53
52
  assert(!thread_attached);
54
53
  if (libevent_should_close_connection(session) ||
55
 
      ! session->initGlobals())
 
54
      session->initGlobals())
56
55
  {
57
56
    return true;
58
57
  }