Changeset: ce4407ba5c9c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ce4407ba5c9c
Modified Files:
gdk/gdk_strimps.c
Branch: strimps_update
Log Message:
If strimp creation failed try again next time
The sql catalog expects a strimp for the given bat, so if the creation failed,
we need to retry next time.
diffs (16 lines):
diff --git a/gdk/gdk_strimps.c b/gdk/gdk_strimps.c
--- a/gdk/gdk_strimps.c
+++ b/gdk/gdk_strimps.c
@@ -867,6 +867,12 @@ STRMPcreate(BAT *b, BAT *s)
assert(pb->tstrimps == NULL);
if ((r = STRMPcreateStrimpHeap(pb, s)) == NULL) {
+ /* Strimp creation failed, but it still
+ * exists in the SQL layer. Set the
+ * pointer to 2 so that construction
+ * will be attemtped again next time.
+ */
+ pb->tstrimps = (Strimps *)2;
MT_lock_unset(&pb->batIdxLock);
return GDK_FAIL;
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]