/** * 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(); } }
trace.debug("log prepare commit s: " + session.getId() + ", " + transaction); if (store.getDatabase().getPageStore() == null) { if (store.getDatabase().getFlushOnEachCommit()) { flush();
int sessionId = in.readVarInt(); int tableId = in.readVarInt(); Row row = readRow(store.getDatabase().getRowFactory(), in, data); if (stage == RECOVERY_STAGE_UNDO) { store.allocateIfIndexRoot(pos, tableId, row);
/** * 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(); } }
trace.debug("log prepare commit s: " + session.getId() + ", " + transaction); if (store.getDatabase().getPageStore() == null) { if (store.getDatabase().getFlushOnEachCommit()) { flush();
trace.debug("log prepare commit s: " + session.getId() + ", " + transaction); if (store.getDatabase().getPageStore() == null) { if (store.getDatabase().getFlushOnEachCommit()) { flush();
int sessionId = in.readVarInt(); int tableId = in.readVarInt(); Row row = readRow(store.getDatabase().getRowFactory(), in, data); if (stage == RECOVERY_STAGE_UNDO) { store.allocateIfIndexRoot(pos, tableId, row);
int sessionId = in.readVarInt(); int tableId = in.readVarInt(); Row row = readRow(store.getDatabase().getRowFactory(), in, data); if (stage == RECOVERY_STAGE_UNDO) { store.allocateIfIndexRoot(pos, tableId, row);