Commit a670d1d0 authored by Marek Vavruša's avatar Marek Vavruša

lib/cache: track inserts

parent 5746a5fc
......@@ -181,6 +181,7 @@ int kr_cache_insert(struct kr_cache_txn *txn, uint8_t tag, const knot_dname_t *n
namedb_val_t entry = { NULL, sizeof(*header) + data.len };
/* LMDB can do late write and avoid copy */
txn->owner->stats.insert += 1;
if (db_api == namedb_lmdb_api()) {
int ret = db_api->insert((namedb_txn_t *)txn, &key, &entry, 0);
if (ret != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment