~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_append.c

  • Committer: Brian Aker
  • Date: 2008-07-18 20:10:26 UTC
  • mfrom: (51.3.29 remove-dbug)
  • Revision ID: brian@tangent.org-20080718201026-tto5golt0xhwqe4a
Merging in Jay's final patch on dbug.

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
}