Changeset: 2a913cb42819 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2a913cb42819
Modified Files:
        sql/storage/bat/bat_storage.c
Branch: persistent_sketches
Log Message:

Use ptr from iterator


diffs (12 lines):

diff --git a/sql/storage/bat/bat_storage.c b/sql/storage/bat/bat_storage.c
--- a/sql/storage/bat/bat_storage.c
+++ b/sql/storage/bat/bat_storage.c
@@ -3096,7 +3096,7 @@ idx_stats(sql_trans *tr, sql_idx *i, boo
                                *unique = bi.key;
                                *unique_est = bi.unique_est;
                                if (*unique_est == 0) {
-                                       if (bi.b->tstats) {
+                                       if (bi.sh) {
                                                void *sk_b = 
tstats_sketch(bi.sh);
                                                *unique_est = 
sketch_estimate(sk_b);
                                        } else if (atom_sketchable(bi.type)) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to