예제 #1
0
void RepoTxn::step(RepoQuery& query) {
  try {
    query.step();
  } catch (const std::exception&) {
    rollback();
    throw;
  }
}
예제 #2
0
void RepoTxn::step(RepoQuery& query) {
  ROLLBACK_GUARD([&] {
      query.step();
    });
}