@Override public final void endUpdate(UpdateContext op) throws SailException { connectionLock.readLock().lock(); try { verifyIsOpen(); updateLock.lock(); try { verifyIsActive(); endUpdateInternal(op); } finally { updateLock.unlock(); } } finally { connectionLock.readLock().unlock(); if (op != null) { flush(); } } }
@Override public final void endUpdate(UpdateContext op) throws SailException { connectionLock.readLock().lock(); try { verifyIsOpen(); updateLock.lock(); try { verifyIsActive(); endUpdateInternal(op); } finally { updateLock.unlock(); } } finally { connectionLock.readLock().unlock(); if (op != null) { flush(); } } }
/** * If there are no open operations. * * @throws SailException */ private void flushPendingUpdates() throws SailException { if (!isActiveOperation() || isActive() && !getTransactionIsolation().isCompatibleWith(IsolationLevels.SNAPSHOT_READ)) { flush(); } }
/** * If there are no open operations. * * @throws SailException */ private void flushPendingUpdates() throws SailException { if (!isActiveOperation() || isActive() && !getTransactionIsolation().isCompatibleWith(IsolationLevels.SNAPSHOT_READ)) { flush(); } }