Changeset: 0743319615a9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/0743319615a9
Modified Files:
gdk/gdk_bat.c
Branch: Sep2022
Log Message:
Plug a hole.
diffs (17 lines):
diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -704,6 +704,13 @@ BATdestroy(BAT *b)
ATOMIC_DESTROY(&b->theap->refs);
GDKfree(b->theap);
}
+ if (b->oldtail) {
+ /* the bat has not been committed, so we cannot remove
+ * the old tail file */
+ ATOMIC_AND(&b->oldtail->refs, ~DELAYEDREMOVE);
+ HEAPdecref(b->oldtail, false);
+ b->oldtail = NULL;
+ }
GDKfree(b);
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]