@Override public synchronized void flushLog() { if (file != null) { log.flush(); } }
pageOut.fillPage(); if (store.getDatabase().getFlushOnEachCommit()) { flush();
pageOut.fillPage(); if (store.getDatabase().getFlushOnEachCommit()) { flush();
/** * Flush the transaction log and sync the file. */ public synchronized void sync() { if (file != null) { log.flush(); file.sync(); } }
pageOut.fillPage(); if (store.getDatabase().getFlushOnEachCommit()) { flush();
/** * Mark a transaction as committed. * * @param sessionId the session */ void commit(int sessionId) { if (trace.isDebugEnabled()) { trace.debug("log commit s: " + sessionId); } if (store.getDatabase().getPageStore() == null) { // database already closed return; } Data buffer = getBuffer(); buffer.writeByte((byte) COMMIT); buffer.writeVarInt(sessionId); write(buffer); if (store.getDatabase().getFlushOnEachCommit()) { flush(); } }
@Override public synchronized void flushLog() { if (file != null) { log.flush(); } }
@Override public synchronized void flushLog() { if (file != null) { log.flush(); } }
/** * Flush the transaction log and sync the file. */ public synchronized void sync() { if (file != null) { log.flush(); file.sync(); } }
/** * Flush the transaction log and sync the file. */ public synchronized void sync() { if (file != null) { log.flush(); file.sync(); } }
/** * Mark a transaction as committed. * * @param sessionId the session */ void commit(int sessionId) { if (trace.isDebugEnabled()) { trace.debug("log commit s: " + sessionId); } if (store.getDatabase().getPageStore() == null) { // database already closed return; } Data buffer = getBuffer(); buffer.writeByte((byte) COMMIT); buffer.writeVarInt(sessionId); write(buffer); if (store.getDatabase().getFlushOnEachCommit()) { flush(); } }
/** * Mark a transaction as committed. * * @param sessionId the session */ void commit(int sessionId) { if (trace.isDebugEnabled()) { trace.debug("log commit s: " + sessionId); } if (store.getDatabase().getPageStore() == null) { // database already closed return; } Data buffer = getBuffer(); buffer.writeByte((byte) COMMIT); buffer.writeVarInt(sessionId); write(buffer); if (store.getDatabase().getFlushOnEachCommit()) { flush(); } }