~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_rename.c

  • Committer: Jay Pipes
  • Date: 2008-07-17 21:15:06 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080717211506-1nntrb8v42ojjgdo
Phase 5 - Remove DBUG from mysys

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
int my_rename(const char *from, const char *to, myf MyFlags)
25
25
{
26
26
  int error = 0;
27
 
  DBUG_ENTER("my_rename");
28
 
  DBUG_PRINT("my",("from %s to %s MyFlags %d", from, to, MyFlags));
29
27
 
30
28
#if defined(HAVE_FILE_VERSIONS)
31
29
  {                             /* Check that there isn't a old file */
38
36
      error= -1;
39
37
      if (MyFlags & MY_FAE+MY_WME)
40
38
        my_error(EE_LINK, MYF(ME_BELL+ME_WAITTANG),from,to,my_errno);
41
 
      DBUG_RETURN(error);
 
39
      return(error);
42
40
    }
43
41
    my_errno=save_errno;
44
42
  }
68
66
      error= -1;
69
67
#endif
70
68
  }
71
 
  DBUG_RETURN(error);
 
69
  return(error);
72
70
} /* my_rename */