Changeset: d8ce1569e464 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d8ce1569e464
Modified Files:
        gdk/gdk_bat.c
Branch: persistent_sketches
Log Message:

Zero the sketch only.


diffs (16 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -366,11 +366,11 @@ COLnew2(oid hseq, int tt, BUN cap, role_
                                HEAPfree(bn->tvheap, true);
                        goto bailout;
                }
+               memset(bn->tstats->base, 0, TSTATS_SZ);
                int32_t *ver = tstats_version(bn->tstats);
                int32_t *age = tstats_age(bn->tstats);
                *ver = TSTATS_VERSION;
                *age = -1;
-               memset(bn->tstats->base, 0, TSTATS_SZ);
                bn->tstats->free = TSTATS_SZ;
        }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to