Changeset: 6c4c5c4fb24c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6c4c5c4fb24c
Modified Files:
gdk/gdk_storage.c
Branch: default
Log Message:
tvheap can be empty even if bat isn't.
diffs (22 lines):
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -682,8 +682,7 @@ BATsave_iter(BAT *b, BATiter *bi, BUN si
MT_rwlock_rdunlock(&b->thashlock);
return GDK_SUCCEED;
}
- /* views cannot be saved, but make an exception for
- * force-remapped views */
+ /* views cannot be saved */
if ((bi->h != NULL && bi->h->parentid != b->batCacheid) ||
(bi->vh != NULL && bi->vh->parentid != b->batCacheid &&
bi->vh->parentid != b->ustr)) {
if (locked)
@@ -718,7 +717,7 @@ BATsave_iter(BAT *b, BATiter *bi, BUN si
bi->h->filename);
close(fd);
}
- if (bi->vh && !bi->ustr) {
+ if (bi->vh && bi->vhfree > 0 && !bi->ustr) {
fd = GDKfdlocate(bi->vh->farmid,
bi->vh->filename, "rb+", NULL);
if (fd < 0) {
GDKsyserror("cannot open file %s for
sync\n",
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]