Changeset: c28c18472dfc for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c28c18472dfc
Modified Files:
gdk/gdk_rtree.c
Branch: geo-update
Log Message:
No need to check if db in memory if Rtree exists on disk
diffs (20 lines):
diff --git a/gdk/gdk_rtree.c b/gdk/gdk_rtree.c
--- a/gdk/gdk_rtree.c
+++ b/gdk/gdk_rtree.c
@@ -284,12 +284,10 @@ RTREEdestroy(BAT *b)
//If the rtree is not loaded (pb->trtree is null), but there is a file
with the index (from previous execution),
//we should remove the file
else if (RTREEexistsonfile(pb)) {
- if (!GDKinmemory(pb->theap->farmid)) {
- GDKunlink(pb->theap->farmid,
- BATDIR,
- BBP_physical(b->batCacheid),
- "bsrt");
- }
+ GDKunlink(pb->theap->farmid,
+ BATDIR,
+ BBP_physical(b->batCacheid),
+ "bsrt");
}
MT_lock_unset(&b->batIdxLock);
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]