@Override public void unlock() { refDb.unlock(); }
@Override public void unlock() { actual.unlock(); }
@Override public void unlock() { refDb.unlock(); }
@Override public void unlock() { actual.unlock(); }
/** * Creates a new transaction and returns it. * * @return the {@link GeogigTransaction} that was created by the operation */ @Override protected GeogigTransaction _call() { Preconditions.checkState(!(context instanceof GeogigTransaction), "Cannot start a new transaction within a transaction!"); GeogigTransaction t = new GeogigTransaction(context, UUID.randomUUID()); // Lock the repository try { refDatabase().lock(); } catch (TimeoutException e) { Throwables.propagate(e); } try { // Copy original refs t.create(); } finally { // Unlock the repository refDatabase().unlock(); } // Return the transaction return t; } }
/** * Creates a new transaction and returns it. * * @return the {@link GeogigTransaction} that was created by the operation */ @Override protected GeogigTransaction _call() { Preconditions.checkState(!(context instanceof GeogigTransaction), "Cannot start a new transaction within a transaction!"); GeogigTransaction t = new GeogigTransaction(context, UUID.randomUUID()); // Lock the repository try { refDatabase().lock(); } catch (TimeoutException e) { throw new RuntimeException(e); } try { // Copy original refs t.create(); } finally { // Unlock the repository refDatabase().unlock(); } // Return the transaction return t; } }
refDatabase().unlock();
refDatabase().unlock();