~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/myisamlog.c

DBUG symbol removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
    {
145
145
      version=0;
146
146
      switch((option=*pos)) {
147
 
      case '#':
148
 
        DBUG_PUSH (++pos);
149
 
        pos=" ";                                /* Skip rest of arg */
150
 
        break;
151
147
      case 'c':
152
148
        if (! *++pos)
153
149
        {
264
260
        puts("         -o \"offset\"         -p # \"remove # components from path\"");
265
261
        puts("         -r \"recover\"        -R \"file recordposition\"");
266
262
        puts("         -u \"update\"         -v \"verbose\"   -w \"write file\"");
267
 
        puts("         -D \"myisam compiled with DBUG\"   -P \"processes\"");
268
263
        puts("\nOne can give a second and a third '-v' for more verbose.");
269
264
        puts("Normaly one does a update (-u).");
270
265
        puts("If a recover is done all writes and all possibly updates and deletes is done\nand errors are only counted.");
314
309
  enum ha_extra_function extra_command;
315
310
  TREE tree;
316
311
  struct file_info file_info,*curr_file_info;
317
 
  DBUG_ENTER("examine_log");
318
312
 
319
313
  if ((file=my_open(file_name,O_RDONLY,MYF(MY_WME))) < 0)
320
 
    DBUG_RETURN(1);
 
314
    return(1);
321
315
  write_file=0;
322
316
  if (write_filename)
323
317
  {
324
318
    if (!(write_file=my_fopen(write_filename,O_WRONLY,MYF(MY_WME))))
325
319
    {
326
320
      my_close(file,MYF(0));
327
 
      DBUG_RETURN(1);
 
321
      return(1);
328
322
    }
329
323
  }
330
324
 
653
647
  VOID(end_io_cache(&cache));
654
648
  VOID(my_close(file,MYF(0)));
655
649
  if (write_file && my_fclose(write_file,MYF(MY_WME)))
656
 
    DBUG_RETURN(1);
657
 
  DBUG_RETURN(0);
 
650
    return(1);
 
651
  return(0);
658
652
 
659
653
 err:
660
654
  fflush(stdout);
674
668
  VOID(my_close(file,MYF(0)));
675
669
  if (write_file)
676
670
    VOID(my_fclose(write_file,MYF(MY_WME)));
677
 
  DBUG_RETURN(1);
 
671
  return(1);
678
672
}
679
673
 
680
674
 
681
675
static int read_string(IO_CACHE *file, register uchar* *to, register uint length)
682
676
{
683
 
  DBUG_ENTER("read_string");
684
 
 
685
677
  if (*to)
686
678
    my_free((uchar*) *to,MYF(0));
687
679
  if (!(*to= (uchar*) my_malloc(length+1,MYF(MY_WME))) ||
690
682
    if (*to)
691
683
      my_free(*to,MYF(0));
692
684
    *to= 0;
693
 
    DBUG_RETURN(1);
 
685
    return(1);
694
686
  }
695
687
  *((char*) *to+length)= '\0';
696
 
  DBUG_RETURN (0);
 
688
  return (0);
697
689
}                               /* read_string */
698
690
 
699
691
 
753
745
 
754
746
static void file_info_free(struct file_info *fileinfo)
755
747
{
756
 
  DBUG_ENTER("file_info_free");
757
748
  if (update)
758
749
  {
759
750
    if (!fileinfo->closed)
763
754
  }
764
755
  my_free(fileinfo->name,MYF(0));
765
756
  my_free(fileinfo->show_name,MYF(0));
766
 
  DBUG_VOID_RETURN;
 
757
  return;
767
758
}
768
759
 
769
760