diff --git a/src/knot/zone/timers.c b/src/knot/zone/timers.c index e7903785e5c6bf25e938b0f8160f65fe7022ed57..83f5dcbdef59a91ec965e8d529db033f99fae8f5 100644 --- a/src/knot/zone/timers.c +++ b/src/knot/zone/timers.c @@ -141,12 +141,7 @@ int read_zone_timers(knot_namedb_t *timer_db, const zone_t *zone, time_t *timers } ret = read_timers(&txn, zone, timers); - if (ret != KNOT_EOK) { - db_api->txn_abort(&txn); - return ret; - } - - ret = db_api->txn_commit(&txn); + db_api->txn_abort(&txn); if (ret != KNOT_EOK) { return ret; }