~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

Listen plugin working now, still some cleanup left.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1533
1533
 
1534
1534
int main(int argc, char **argv)
1535
1535
{
1536
 
  ListenHandler listen;
 
1536
  ListenHandler listen_handler;
1537
1537
  Protocol *protocol;
1538
1538
  Session *session;
1539
1539
 
1628
1628
 
1629
1629
  set_default_port();
1630
1630
 
1631
 
  if (listen.bindAll(my_bind_addr_str, drizzled_port_timeout))
 
1631
  if (listen_handler.bindAll(my_bind_addr_str, drizzled_port_timeout))
1632
1632
    unireg_abort(1);
1633
1633
 
1634
1634
  /*
1637
1637
  */
1638
1638
  error_handler_hook= my_message_sql;
1639
1639
 
1640
 
  if (drizzle_rm_tmp_tables() || my_tz_init((Session *)0, default_tz_name))
 
1640
  if (drizzle_rm_tmp_tables(listen_handler) ||
 
1641
      my_tz_init((Session *)0, default_tz_name))
1641
1642
  {
1642
1643
    abort_loop= true;
1643
1644
    select_thread_in_use=0;
1657
1658
  /* Listen for new connections and start new session for each connection
1658
1659
     accepted. The listen.getProtocol() method will return NULL when the server
1659
1660
     should be shutdown. */
1660
 
  while ((protocol= listen.getProtocol()) != NULL)
 
1661
  while ((protocol= listen_handler.getProtocol()) != NULL)
1661
1662
  {
1662
1663
    if (!(session= new Session(protocol)))
1663
1664
    {