Changeset: d9d71353427f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d9d71353427f
Modified Files:
gdk/gdk_storage.c
Branch: Jul2021
Log Message:
Don't attempt to remove heap file in in-memory database.
diffs (23 lines):
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -969,7 +969,8 @@ BATdelete(BAT *b)
PROPdestroy_nolock(b);
if (b->theap) {
HEAPfree(b->theap, true);
- if ((f = GDKfilepath(b->theap->farmid, BAKDIR, o, "tail1")) !=
NULL) {
+ if (!GDKinmemory(b->theap->farmid) &&
+ (f = GDKfilepath(b->theap->farmid, BAKDIR, o, "tail1")) !=
NULL) {
MT_remove(f);
size_t i = strlen(f) - 1;
f[i] = '2';
@@ -985,7 +986,8 @@ BATdelete(BAT *b)
}
if (b->tvheap) {
HEAPfree(b->tvheap, true);
- if ((f = GDKfilepath(b->theap->farmid, BAKDIR, o, "theap")) !=
NULL) {
+ if (!GDKinmemory(b->tvheap->farmid) &&
+ (f = GDKfilepath(b->theap->farmid, BAKDIR, o, "theap")) !=
NULL) {
MT_remove(f);
GDKfree(f);
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]