Changeset: 772e9917aa15 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=772e9917aa15
Modified Files:
        gdk/gdk_heap.c
        gdk/gdk_storage.c
Branch: Nov2019
Log Message:

Remove exclusive open flag from GDKfdlocate.


diffs (33 lines):

diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -61,7 +61,7 @@ HEAPcreatefile(int farmid, size_t *maxsz
                fn = path;
        }
        /* round up to mulitple of GDK_mmap_pagesize */
-       fd = GDKfdlocate(NOFARM, fn, "wxb", NULL);
+       fd = GDKfdlocate(NOFARM, fn, "wb", NULL);
        if (fd >= 0) {
                close(fd);
                base = GDKload(NOFARM, fn, NULL, *maxsz, maxsz, STORE_MMAP);
@@ -421,7 +421,7 @@ GDKupgradevarheap(BAT *b, var_t v, bool 
                const char *base = b->theap.base;
 
                /* first save heap in file with extra .tmp extension */
-               if ((fd = GDKfdlocate(b->theap.farmid, b->theap.filename, 
"wxb", "tmp")) < 0)
+               if ((fd = GDKfdlocate(b->theap.farmid, b->theap.filename, "wb", 
"tmp")) < 0)
                        return GDK_FAIL;
                while (size > 0) {
                        ret = write(fd, base, (unsigned) MIN(1 << 30, size));
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -218,8 +218,6 @@ GDKfdlocate(int farmid, const char *nme,
 
        if (strchr(mode, 'w')) {
                flags |= O_WRONLY | O_CREAT;
-               if (strchr(mode, 'x'))
-                       flags |= O_EXCL;
        } else if (!strchr(mode, '+')) {
                flags |= O_RDONLY;
        } else {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to