]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/hash.c
tdb2: Add stats attribute.
[ccan] / ccan / tdb2 / hash.c
index 51874918c62ef4fb53e5581c252e8ace6301de9a..7c7843ec8474d1ac8d751d69b1bdae7652818ff0 100644 (file)
@@ -358,6 +358,7 @@ static int expand_group(struct tdb_context *tdb, struct hash_info *h)
        if (subhash == TDB_OFF_ERR)
                return -1;
 
+       add_stat(tdb, alloc_subhash, 1);
        if (zero_out(tdb, subhash + sizeof(struct tdb_used_record),
                     sizeof(tdb_off_t) << TDB_SUBLEVEL_HASH_BITS) == -1)
                return -1;