Changeset: a92b448483f0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a92b448483f0
Modified Files:
        sql/backends/monet5/sql_statistics.c
Branch: Jan2022
Log Message:

Remove now unnecessary lock.


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
@@ -132,11 +132,8 @@ 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 */
-                                       MT_lock_set(&b->theaplock);
                                        (void) BATordered(b);
                                        (void) BATordered_rev(b);
-                                       MT_lock_unset(&b->theaplock);
 
                                        /* Check for nils existence */
                                        (void) BATcount_no_nil(b, NULL);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to