Skip to content
Snippets Groups Projects
Commit 63e78fbf authored by Jan Kadlec's avatar Jan Kadlec
Browse files

persistent-events: Abort read-only transaction.

parent b0d2405b
Branches
Tags
No related merge requests found
......@@ -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;
}
......
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