use of com.torodb.core.backend.WriteBackendTransaction in project torodb by torodb.
the class DefaultConsistencyHandler method flushConsistentState.
private Object flushConsistentState(BackendConnection conn) throws RetrierAbortException {
try (WriteBackendTransaction trans = conn.openSharedWriteTransaction()) {
trans.writeMetaInfo(CONSISTENCY_KEY, KvBoolean.from(consistent));
trans.commit();
} catch (UserException ex) {
throw new RetrierAbortException(ex);
}
return null;
}
Aggregations