Commit 89db041e authored by Daniel Salzman's avatar Daniel Salzman

conf: use explicit txn_abort if read-only

parent cd2d3262
......@@ -121,7 +121,12 @@ static int init_and_check(
}
}
return conf->api->txn_commit(&txn);
if (flags & CONF_FREADONLY) {
conf->api->txn_abort(&txn);
return KNOT_EOK;
} else {
return conf->api->txn_commit(&txn);
}
}
int conf_refresh_txn(
......
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