Changeset: 3ac0a372d52f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3ac0a372d52f
Modified Files:
sql/backends/monet5/sql_statistics.c
Branch: analyze-fix
Log Message:
At the moment a bat iterator call is required around BATordered calls to
prevent a race condition on the heap
diffs (15 lines):
diff --git a/sql/backends/monet5/sql_statistics.c
b/sql/backends/monet5/sql_statistics.c
--- a/sql/backends/monet5/sql_statistics.c
+++ b/sql/backends/monet5/sql_statistics.c
@@ -130,8 +130,11 @@ sql_analyze(Client cntxt, MalBlkPtr mb,
}
/* Collect new sorted and revsorted
properties */
+ /* At the moment the heap must be
locked around the BATordered calls to prevent a race condition on it */
+ BATiter bi = bat_iterator(b);
(void) BATordered(b);
(void) BATordered_rev(b);
+ bat_iterator_end(&bi);
/* Check for nils existence */
(void) BATcount_no_nil(b, NULL);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list