/** * displays entries in the activeTx table. * <p>useful for debug. */ public void activeTxDisplay() { for (int i=0; i < activeTx.length; ++i) { if (activeTx[i] == null) continue; synchronized(activeTx) { XACommittingTx tx = activeTx[i]; byte[][] record = tx.getRecord(); System.out.println("activeTx[" + i + "] key=" + Long.toHexString(tx.getLogKey()) + "\n Fields: " + record.length ); for (int j = 0; j < record.length; ++j) { byte[] field = record[j]; System.out.println(" [" + j + "] len=" + field.length + ": " + new String(field)); } } } }
/** * displays entries in the activeTx table. * <p>useful for debug. */ public void activeTxDisplay() { for (int i=0; i < activeTx.length; ++i) { if (activeTx[i] == null) continue; synchronized(activeTx) { XACommittingTx tx = activeTx[i]; byte[][] record = tx.getRecord(); System.out.println("activeTx[" + i + "] key=" + Long.toHexString(tx.getLogKey()) + "\n Fields: " + record.length ); for (int j = 0; j < record.length; ++j) { byte[] field = record[j]; System.out.println(" [" + j + "] len=" + field.length + ": " + new String(field)); } } } }
/** * displays entries in the activeTx table. * <p>useful for debug. */ public void activeTxDisplay() { for (int i=0; i < activeTx.length; ++i) { if (activeTx[i] == null) continue; synchronized(activeTx) { XACommittingTx tx = activeTx[i]; byte[][] record = tx.getRecord(); System.out.println("activeTx[" + i + "] key=" + Long.toHexString(tx.getLogKey()) + "\n Fields: " + record.length ); for (int j = 0; j < record.length; ++j) { byte[] field = record[j]; System.out.println(" [" + j + "] len=" + field.length + ": " + new String(field)); } } } }
TraceTm.recovery.debug("Wrote UniqueIDRecord; at:" + LogId.getLogKey() + " uuid0:" + uuid0 + " uuid1:" + uuid1);
TraceTm.recovery.debug("Wrote UniqueIDRecord; at:" + LogId.getLogKey() + " uuid0:" + uuid0 + " uuid1:" + uuid1);
public void close() throws IOException, InterruptedException { if (isClosed) return; long newMark = Long.MAX_VALUE; XACommittingTx tx = null; // set new log mark at oldest activeTx entry synchronized(activeTxLock) { for (int i=0; i < activeTx.length; ++i) { tx = activeTx[i]; if (tx == null) continue; long key = tx.getLogKey(); if (key < newMark) newMark = key; } if (newMark < Long.MAX_VALUE) { try { this.mark(newMark, true); } catch (InvalidLogKeyException e) { // will not happen } catch (LogClosedException e) { // will not happen } } } super.close(); }
public void close() throws IOException, InterruptedException { if (isClosed) return; long newMark = Long.MAX_VALUE; XACommittingTx tx = null; // set new log mark at oldest activeTx entry synchronized(activeTxLock) { for (int i=0; i < activeTx.length; ++i) { tx = activeTx[i]; if (tx == null) continue; long key = tx.getLogKey(); if (key < newMark) newMark = key; } if (newMark < Long.MAX_VALUE) { try { this.mark(newMark, true); } catch (InvalidLogKeyException e) { // will not happen } catch (LogClosedException e) { // will not happen } } } super.close(); }
public void close() throws IOException, InterruptedException { if (isClosed) return; long newMark = Long.MAX_VALUE; XACommittingTx tx = null; // set new log mark at oldest activeTx entry synchronized(activeTxLock) { for (int i=0; i < activeTx.length; ++i) { tx = activeTx[i]; if (tx == null) continue; long key = tx.getLogKey(); if (key < newMark) newMark = key; } if (newMark < Long.MAX_VALUE) { try { this.mark(newMark, true); } catch (InvalidLogKeyException e) { // will not happen } catch (LogClosedException e) { // will not happen } } } super.close(); }
lr.key = tx.getLogKey(); lr.tod = 0L; lr.setTx(tx);
lr.key = tx.getLogKey(); lr.tod = 0L; lr.setTx(tx);
lr.key = tx.getLogKey(); lr.tod = 0L; lr.setTx(tx);
txKey = tx.getLogKey(); if (txKey > overflowFence)
txKey = tx.getLogKey(); if (txKey > overflowFence)
txKey = tx.getLogKey(); if (txKey > overflowFence)