~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_append.c

  • Committer: Jay Pipes
  • Date: 2008-07-17 21:11:32 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080717211132-ag1gi9ycwmf7l3ng
Phase 4 - Remove DBUG from mysys

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  uint Count;
40
40
  File from_file,to_file;
41
41
  uchar buff[IO_SIZE];
42
 
  DBUG_ENTER("my_append");
43
 
  DBUG_PRINT("my",("from %s to %s MyFlags %d", from, to, MyFlags));
44
42
 
45
43
  from_file= to_file= -1;
46
44
 
53
51
            my_write(to_file,buff,Count,MYF(MyFlags | MY_NABP)))
54
52
          goto err;
55
53
      if (my_close(from_file,MyFlags) | my_close(to_file,MyFlags))
56
 
        DBUG_RETURN(-1);                                /* Error on close */
57
 
      DBUG_RETURN(0);
 
54
        return(-1);                             /* Error on close */
 
55
      return(0);
58
56
    }
59
57
  }
60
58
err:
61
59
  if (from_file >= 0) VOID(my_close(from_file,MyFlags));
62
60
  if (to_file >= 0)   VOID(my_close(to_file,MyFlags));
63
 
  DBUG_RETURN(-1);
 
61
  return(-1);
64
62
}