Changeset: 21d175d15a0a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=21d175d15a0a
Modified Files:
monetdb5/mal/mal_box.c
Branch: Jan2014
Log Message:
Fix changeset dd9af1721ede: revert behavior to what it was before.
Without changing the core of that change.
diffs (12 lines):
diff --git a/monetdb5/mal/mal_box.c b/monetdb5/mal/mal_box.c
--- a/monetdb5/mal/mal_box.c
+++ b/monetdb5/mal/mal_box.c
@@ -664,7 +664,7 @@ prepareSaveBox(Box box, str *boxfile, st
if (*boxfile == 0)
return 0;
- if ( unlink(*boxfilebak), rename(*boxfile, *boxfilebak) < 0) {
+ if (rename(*boxfile, *boxfilebak) < 0 && errno != ENOENT) {
#ifdef DEBUG_MAL_BOX
mnstr_printf(GDKout, "saveBox:can not rename %s to %s\n",
*boxfile, *boxfilebak);
#endif
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list