X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Fsummary.c;h=52103ea6b5247672ef24f808a97a1a99f4153466;hb=06a5b1a852c207a5172922e39d8effab0dd17b91;hp=e9f986e7727a4775928617256ed65e11e0dbaa5c;hpb=8c7516decc0a0921b4fd45eef401e07eb58e0b01;p=ccan diff --git a/ccan/tdb2/summary.c b/ccan/tdb2/summary.c index e9f986e7..52103ea6 100644 --- a/ccan/tdb2/summary.c +++ b/ccan/tdb2/summary.c @@ -89,7 +89,7 @@ static tdb_len_t summarize_zone(struct tdb_context *tdb, tdb_off_t zone_off, p = tdb_get(tdb, off, &pad, sizeof(pad)); if (!p) return TDB_OFF_ERR; - if (frec_magic(&p->f) == TDB_FREE_MAGIC) { + if (rec_magic(&p->u) != TDB_MAGIC) { len = p->f.data_len; tally_add(free, len); bucketlen[size_to_bucket(frec_zone_bits(&p->f), len)]++;