@Override protected void startTransactionInternal() throws SailException { if (!nativeStore.isWritable()) { throw new SailReadOnlyException("Unable to start transaction: data file is locked or read-only"); } boolean releaseLock = true; try { if (txnLock == null || !txnLock.isActive()) { txnLock = nativeStore.getTransactionLock(getTransactionIsolation()); } super.startTransactionInternal(); } finally { if (releaseLock && txnLock != null) { txnLock.release(); } } }
@Override protected void startTransactionInternal() throws SailException { if (!nativeStore.isWritable()) { throw new SailReadOnlyException("Unable to start transaction: data file is locked or read-only"); } boolean releaseLock = true; try { if (txnLock == null || !txnLock.isActive()) { txnLock = nativeStore.getTransactionLock(getTransactionIsolation()); } super.startTransactionInternal(); } finally { if (releaseLock && txnLock != null) { txnLock.release(); } } }