~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log.cc

  • Committer: Monty Taylor
  • Date: 2008-10-04 18:42:30 UTC
  • Revision ID: monty@inaugust.com-20081004184230-j2j1uottu2d0yl0m
Removed NullS. bu-bye.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1520
1520
 
1521
1521
  /* First delete all old log files */
1522
1522
 
1523
 
  if (find_log_pos(&linfo, NullS, 0))
 
1523
  if (find_log_pos(&linfo, NULL, 0))
1524
1524
  {
1525
1525
    error=1;
1526
1526
    goto err;
1666
1666
    If included is true, we want the first relay log;
1667
1667
    otherwise we want the one after event_relay_log_name.
1668
1668
  */
1669
 
  if ((included && (error=find_log_pos(&rli->linfo, NullS, 0))) ||
 
1669
  if ((included && (error=find_log_pos(&rli->linfo, NULL, 0))) ||
1670
1670
      (!included &&
1671
1671
       ((error=find_log_pos(&rli->linfo, rli->event_relay_log_name, 0)) ||
1672
1672
        (error=find_next_log(&rli->linfo, 0)))))
1767
1767
    File name exists in index file; delete until we find this file
1768
1768
    or a file that is used.
1769
1769
  */
1770
 
  if ((error=find_log_pos(&log_info, NullS, 0 /*no mutex*/)))
 
1770
  if ((error=find_log_pos(&log_info, NULL, 0 /*no mutex*/)))
1771
1771
    goto err;
1772
1772
  while ((strcmp(to_log,log_info.log_file_name) || (exit_loop=included)) &&
1773
1773
         !log_in_use(log_info.log_file_name))
1892
1892
    or a file that is used or a file
1893
1893
    that is older than purge_time.
1894
1894
  */
1895
 
  if ((error=find_log_pos(&log_info, NullS, 0 /*no mutex*/)))
 
1895
  if ((error=find_log_pos(&log_info, NULL, 0 /*no mutex*/)))
1896
1896
    goto err;
1897
1897
 
1898
1898
  while (strcmp(log_file_name, log_info.log_file_name) &&
3144
3144
     On Windows is necessary a temporary file for to rename
3145
3145
     the current error file.
3146
3146
    */
3147
 
    strxmov(err_temp, err_renamed,"-tmp",NullS);
 
3147
    strxmov(err_temp, err_renamed,"-tmp",NULL);
3148
3148
    (void) my_delete(err_temp, MYF(0)); 
3149
3149
    if (freopen(err_temp,"a+",stdout))
3150
3150
    {
3810
3810
    return 1;
3811
3811
  }
3812
3812
 
3813
 
  if ((error= find_log_pos(&log_info, NullS, 1)))
 
3813
  if ((error= find_log_pos(&log_info, NULL, 1)))
3814
3814
  {
3815
3815
    if (error != LOG_INFO_EOF)
3816
3816
      sql_print_error(_("find_log_pos() failed (error: %d)"), error);