~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.cc

  • Committer: Brian Aker
  • Date: 2009-04-05 19:53:29 UTC
  • mfrom: (971.3.11 eday-dev)
  • Revision ID: brian@tangent.org-20090405195329-k2vpiwhlri9oaedq
MergeĀ fromĀ Eric.

Show diffs side-by-side

added added

removed removed

Lines of Context:
557
557
 
558
558
 
559
559
/*
560
 
  If we are changing the thread variable, we have to copy it to NET too
 
560
  If we are changing the thread variable, we have to copy it to Protocol too
561
561
*/
562
562
 
563
563
static void fix_net_read_timeout(Session *session, enum_var_type type)
564
564
{
565
565
  if (type != OPT_GLOBAL)
566
 
    drizzleclient_net_set_read_timeout(&session->net, session->variables.net_read_timeout);
 
566
    session->protocol->set_read_timeout(session->variables.net_read_timeout);
567
567
}
568
568
 
569
569
 
570
570
static void fix_net_write_timeout(Session *session, enum_var_type type)
571
571
{
572
572
  if (type != OPT_GLOBAL)
573
 
    drizzleclient_net_set_write_timeout(&session->net, session->variables.net_write_timeout);
 
573
    session->protocol->set_write_timeout(session->variables.net_write_timeout);
574
574
}
575
575
 
576
576
static void fix_net_retry_count(Session *session, enum_var_type type)
577
577
{
578
578
  if (type != OPT_GLOBAL)
579
 
    session->net.retry_count=session->variables.net_retry_count;
 
579
    session->protocol->set_retry_count(session->variables.net_retry_count);
580
580
}
581
581
 
582
582