tdb2: clean up logging
[ccan] / ccan / tdb2 / summary.c
index b54b56e7a712239a74efa87de8a6bde0cce023dc..42b1163e8b3fe25fc007e2b15d741fc0f5afa898 100644 (file)
@@ -164,7 +164,8 @@ char *tdb_summary(struct tdb_context *tdb, enum tdb_summary_flags flags)
        buckets = tally_new(HISTO_HEIGHT);
        if (!flists || !hashes || !freet || !keys || !data || !extra
            || !uncoal || !buckets) {
-               tdb->ecode = TDB_ERR_OOM;
+               tdb_logerr(tdb, TDB_ERR_OOM, TDB_DEBUG_ERROR,
+                          "tdb_summary: failed to allocate tally structures");
                goto unlock;
        }