@Override public long commit() { // The timestamp to be assigned to this commit point. final long commitTime = nextCommitTimestamp(); // do the commit. final IRootBlockView lastRootBlock = _rootBlock; final long commitTime2; try { commitTime2 = commitNow(commitTime); } catch (Throwable t) { throw new RuntimeException(t.getLocalizedMessage() + ": lastRootBlock=" + lastRootBlock, t); } if (commitTime2 == 0L) { // Nothing to commit. return 0L; } // commitNow() should return either 0L or the commitTime we gave it. assert commitTime2 == commitTime; /* * Now that we have committed the data we notify the federation that it * should advance its global lastCommitTime. * * @todo we could use IBufferStrategy#rollback() if the notice failed, * e.g., due to a service outage. */ getLocalTransactionManager().notifyCommit(commitTime); return commitTime; }
@Override public long commit() { // The timestamp to be assigned to this commit point. final long commitTime = nextCommitTimestamp(); // do the commit. final IRootBlockView lastRootBlock = _rootBlock; final long commitTime2; try { commitTime2 = commitNow(commitTime); } catch (Throwable t) { throw new RuntimeException(t.getLocalizedMessage() + ": lastRootBlock=" + lastRootBlock, t); } if (commitTime2 == 0L) { // Nothing to commit. return 0L; } // commitNow() should return either 0L or the commitTime we gave it. assert commitTime2 == commitTime; /* * Now that we have committed the data we notify the federation that it * should advance its global lastCommitTime. * * @todo we could use IBufferStrategy#rollback() if the notice failed, * e.g., due to a service outage. */ getLocalTransactionManager().notifyCommit(commitTime); return commitTime; }
getConcurrencyManager().getTransactionManager().notifyCommit( lastCommitTime);
getConcurrencyManager().getTransactionManager().notifyCommit( lastCommitTime);