]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/transaction.c
tdb2: Add stats attribute.
[ccan] / ccan / tdb2 / transaction.c
index 927c6299549169318259139937d0c0ecf6bd99cf..0aad8de8ee98b5fe38015b2ae076866a9bf117f0 100644 (file)
@@ -621,6 +621,7 @@ static int tdb_recovery_allocate(struct tdb_context *tdb,
           us an area that is being currently used (as of the start of
           the transaction) */
        if (recovery_head != 0) {
+               add_stat(tdb, frees, 1);
                if (add_free_record(tdb, recovery_head,
                                    sizeof(rec) + rec.max_len) != 0) {
                        tdb->log(tdb, TDB_DEBUG_FATAL, tdb->log_priv,