Changeset: c0e1cb91cf3a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c0e1cb91cf3a
Branch: logger-fix
Log Message:

merged with Sep2022


diffs (17 lines):

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

Reply via email to