Changeset: 2c80e7553519 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2c80e7553519
Modified Files:
        gdk/gdk_posix.c
Branch: Feb2013
Log Message:

Extend file if necessary when growing mmap on Windows.


diffs (12 lines):

diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c
--- a/gdk/gdk_posix.c
+++ b/gdk/gdk_posix.c
@@ -777,6 +777,8 @@ MT_mremap(const char *path, int mode, vo
 
        if (old_size >= new_size)
                return old_address;     /* don't bother shrinking */
+       if (GDKextend(path, new_size) < 0)
+               return NULL;
        if (path && !(mode & MMAP_COPY))
                MT_munmap(old_address, old_size);
        p = MT_mmap(path, mode, new_size);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to