Changeset: 63884cd81cf7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=63884cd81cf7
Modified Files:
        gdk/shared_memory.c
Branch: pythonudf
Log Message:

Pass correct directory to GDKfdlocate.


diffs (22 lines):

diff --git a/gdk/shared_memory.c b/gdk/shared_memory.c
--- a/gdk/shared_memory.c
+++ b/gdk/shared_memory.c
@@ -57,14 +57,14 @@ str init_mmap_memory(size_t base_id, siz
     size = (maxsize + GDK_mmap_pagesize - 1) & ~(GDK_mmap_pagesize - 1);
     if (size == 0)
         size = GDK_mmap_pagesize; */
+    fd = GDKfdlocate(0, address, "wb", "tmp");
+    if (fd < 0) {
+        return createException(MAL, "shared_memory.get", "Failure in 
GDKfdlocate(0, %s, \"wb\", NULL)", address);
+    }
     path = GDKfilepath(0, BATDIR, address, "tmp");
     if (path == NULL) {
         return createException(MAL, "shared_memory.get", "Failure in 
GDKfilepath(0, "BATDIR",%s,\"tmp\")", address);
     }
-    fd = GDKfdlocate(0, path, "wb", "tmp");
-    if (fd < 0) {
-        return createException(MAL, "shared_memory.get", "Failure in 
GDKfdlocate(0, %s, \"wb\", NULL)", address);
-    }
     close(fd);
     if (GDKextend(path, size) != GDK_SUCCEED) {
         return createException(MAL, "shared_memory.get", "Failure in 
GDKextend(%s,%zu)", path, size);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to