Changeset: 814d798be931 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/814d798be931
Modified Files:
gdk/gdk_join.c
Branch: Dec2025
Log Message:
Fix location of check.
diffs (21 lines):
diff --git a/gdk/gdk_join.c b/gdk/gdk_join.c
--- a/gdk/gdk_join.c
+++ b/gdk/gdk_join.c
@@ -3606,6 +3606,8 @@ guess_uniques(BAT *b, struct canditer *c
double B = cnt1 - n1 * A;
B += A * ci->ncand;
+ if (B > (double) max)
+ B = (double) max;
MT_lock_set(&b->theaplock);
if (ci->s == NULL ||
(ci->tpe == cand_dense && ci->ncand == BATcount(b) && ci->ncand ==
batcount)) {
@@ -3613,8 +3615,6 @@ guess_uniques(BAT *b, struct canditer *c
b->tunique_est = B;
}
MT_lock_unset(&b->theaplock);
- if (B > (double) max)
- B = (double) max;
return B;
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]