~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/slave.cc

  • Committer: Brian Aker
  • Date: 2008-10-30 21:37:46 UTC
  • Revision ID: brian@tangent.org-20081030213746-5gob9ke3kcatmlzm
Removed random dead code left over from previous scheduler (plus the... has
been dead since 3.23... repl commands). I left "host" for the moment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1109
1109
  if (!report_host)
1110
1110
    return(0);
1111
1111
  report_host_len= strlen(report_host);
1112
 
  if (report_user)
1113
 
    report_user_len= strlen(report_user);
1114
 
  if (report_password)
1115
 
    report_password_len= strlen(report_password);
1116
1112
  /* 30 is a good safety margin */
1117
1113
  if (report_host_len + report_user_len + report_password_len + 30 >
1118
1114
      sizeof(buf))
1120
1116
 
1121
1117
  int4store(pos, server_id); pos+= 4;
1122
1118
  pos= net_store_data(pos, (unsigned char*) report_host, report_host_len);
1123
 
  pos= net_store_data(pos, (unsigned char*) report_user, report_user_len);
1124
 
  pos= net_store_data(pos, (unsigned char*) report_password, report_password_len);
 
1119
  pos= net_store_data(pos, NULL, report_user_len);
 
1120
  pos= net_store_data(pos, NULL, report_password_len);
1125
1121
  int2store(pos, (uint16_t) report_port); pos+= 2;
1126
1122
  int4store(pos, 0);    pos+= 4;
1127
1123
  /* The master will fill in master_id */