void RepoTxn::step(RepoQuery& query) { try { query.step(); } catch (const std::exception&) { rollback(); throw; } }
void RepoTxn::step(RepoQuery& query) { ROLLBACK_GUARD([&] { query.step(); }); }