/** * Prepare a transaction. * * @param session the session * @param transaction the name of the transaction */ synchronized void prepareCommit(Session session, String transaction) { if (readOnly) { return; } if (mvStore != null) { mvStore.prepareCommit(session, transaction); return; } if (pageStore != null) { pageStore.flushLog(); pageStore.prepareCommit(session, transaction); } }
/** * Flush all pending changes to the transaction log. */ public synchronized void flush() { if (readOnly) { return; } if (pageStore != null) { pageStore.flushLog(); } if (mvStore != null) { try { mvStore.flush(); } catch (RuntimeException e) { backgroundException = DbException.convert(e); throw e; } } }
/** * Flush all pending changes to the transaction log. */ public synchronized void flush() { if (readOnly) { return; } if (pageStore != null) { pageStore.flushLog(); } if (mvStore != null) { try { mvStore.flush(); } catch (RuntimeException e) { backgroundException = DbException.convert(e); throw e; } } }
/** * Flush all pending changes to the transaction log. */ public synchronized void flush() { if (readOnly) { return; } if (pageStore != null) { pageStore.flushLog(); } if (mvStore != null) { try { mvStore.flush(); } catch (RuntimeException e) { backgroundException = DbException.convert(e); throw e; } } }
/** * Prepare a transaction. * * @param session the session * @param transaction the name of the transaction */ synchronized void prepareCommit(Session session, String transaction) { if (readOnly) { return; } if (mvStore != null) { mvStore.prepareCommit(session, transaction); return; } if (pageStore != null) { pageStore.flushLog(); pageStore.prepareCommit(session, transaction); } }
/** * Prepare a transaction. * * @param session the session * @param transaction the name of the transaction */ synchronized void prepareCommit(Session session, String transaction) { if (readOnly) { return; } if (mvStore != null) { mvStore.prepareCommit(session, transaction); return; } if (pageStore != null) { pageStore.flushLog(); pageStore.prepareCommit(session, transaction); } }