Changeset: a6b31409f11e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a6b31409f11e
Modified Files:
gdk/gdk_storage.c
Branch: default
Log Message:
Copy hasfile flag to new heap struct after save if heap struct was replaced.
A parallel thread might have replaced the theap (and/or tvheap) structs
by new ones while we were saving the heap. That all works fine. But
the flag that we created a file has to be copied to the new struct.
diffs (16 lines):
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -743,10 +743,12 @@ BATsave_locked(BAT *b, BATiter *bi, BUN
if (b->theap != bi->h) {
assert(b->theap->dirty);
b->theap->wasempty = bi->h->wasempty;
+ b->theap->hasfile = bi->h->hasfile;
}
if (b->tvheap && b->tvheap != bi->vh) {
assert(b->tvheap->dirty);
b->tvheap->wasempty = bi->vh->wasempty;
+ b->tvheap->hasfile = bi->vh->hasfile;
}
if (size != b->batCount || b->batInserted < b->batCount) {
/* if the sizes don't match, the BAT must be dirty */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]