Changeset: ad12d1d7895d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ad12d1d7895d
Modified Files:
gdk/gdk_join.c
Branch: Jul2021
Log Message:
Balance locks and unlocks properly.
diffs (16 lines):
diff --git a/gdk/gdk_join.c b/gdk/gdk_join.c
--- a/gdk/gdk_join.c
+++ b/gdk/gdk_join.c
@@ -3246,9 +3246,11 @@ joincost(BAT *r, struct canditer *lci, s
* non-persistent bats */
MT_lock_set(&r->theaplock);
if (!(BBP_status(r->batCacheid) & BBPEXISTING) /* ||
r->theap->dirty */ || GDKinmemory(r->theap->farmid))
-#endif
rcost += cnt * 2.0;
MT_lock_unset(&r->theaplock);
+#else
+ rcost += cnt * 2.0;
+#endif
}
}
if (rci->ncand != BATcount(r) && rci->tpe != cand_mask) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list