Changeset: f01b8a32abaf for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f01b8a32abaf
Modified Files:
        gdk/gdk_group.c
Branch: Dec2023
Log Message:

Remove unnecessary locks.


diffs (18 lines):

diff --git a/gdk/gdk_group.c b/gdk/gdk_group.c
--- a/gdk/gdk_group.c
+++ b/gdk/gdk_group.c
@@ -851,14 +851,12 @@ BATgroup_internal(BAT **groups, BAT **ex
                maxgrps = b->thash->nunique;
        MT_rwlock_rdunlock(&b->thashlock);
        if (maxgrps == BUN_NONE) {
-               MT_lock_set(&b->theaplock);
                if (bi.unique_est != 0) {
                        maxgrps = (BUN) bi.unique_est;
                        if (maxgrps > ci.ncand)
                                maxgrps = ci.ncand;
                } else
                        maxgrps = ci.ncand / 10;
-               MT_lock_unset(&b->theaplock);
        }
        if (!is_oid_nil(maxgrp) && maxgrps < maxgrp)
                maxgrps += maxgrp;
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to