@Override public void checkpoint() throws IOException { if (!mClosed && mPageDb.isDurable()) { try { checkpoint(false, 0, 0); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(null, this, e); throw e; } } }
@Override public void checkpoint() throws IOException { if (!mClosed && mPageDb.isDurable()) { try { checkpoint(false, 0, 0); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(null, this, e); throw e; } } }
@Override public void checkpoint() throws IOException { while (!isClosed() && mPageDb.isDurable()) { try { checkpoint(false, 0, 0); return; } catch (UnmodifiableReplicaException e) { // Retry. Thread.yield(); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(null, this, e); throw e; } } }
@Override public void checkpoint() throws IOException { while (!isClosed() && mPageDb.isDurable()) { try { checkpoint(false, 0, 0); return; } catch (UnmodifiableReplicaException e) { // Retry. Thread.yield(); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(this, e); throw e; } } }
@Override public void checkpoint() throws IOException { while (!isClosed() && mPageDb.isDurable()) { try { checkpoint(false, 0, 0); return; } catch (UnmodifiableReplicaException e) { // Retry. Thread.yield(); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(this, e); throw e; } } }
@Override public void checkpoint() throws IOException { while (!isClosed() && mPageDb.isDurable()) { try { checkpoint(false, 0, 0); return; } catch (UnmodifiableReplicaException e) { // Retry. Thread.yield(); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(null, this, e); throw e; } } }
@Override public long preallocate(long bytes) throws IOException { if (!mClosed && mPageDb.isDurable()) { int pageSize = mPageSize; long pageCount = (bytes + pageSize - 1) / pageSize; if (pageCount > 0) { pageCount = mPageDb.allocatePages(pageCount); if (pageCount > 0) { try { checkpoint(true, 0, 0); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(null, this, e); throw e; } } return pageCount * pageSize; } } return 0; }
@Override public long preallocate(long bytes) throws IOException { if (!mClosed && mPageDb.isDurable()) { int pageSize = mPageSize; long pageCount = (bytes + pageSize - 1) / pageSize; if (pageCount > 0) { pageCount = mPageDb.allocatePages(pageCount); if (pageCount > 0) { try { checkpoint(true, 0, 0); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(null, this, e); throw e; } } return pageCount * pageSize; } } return 0; }
@Override public long preallocate(long bytes) throws IOException { if (!isClosed() && mPageDb.isDurable()) { int pageSize = mPageSize; long pageCount = (bytes + pageSize - 1) / pageSize; if (pageCount > 0) { pageCount = mPageDb.allocatePages(pageCount); if (pageCount > 0) { try { checkpoint(true, 0, 0); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(null, this, e); throw e; } } return pageCount * pageSize; } } return 0; }
@Override public long preallocate(long bytes) throws IOException { if (!isClosed() && mPageDb.isDurable()) { int pageSize = mPageSize; long pageCount = (bytes + pageSize - 1) / pageSize; if (pageCount > 0) { pageCount = mPageDb.allocatePages(pageCount); if (pageCount > 0) { try { checkpoint(true, 0, 0); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(null, this, e); throw e; } } return pageCount * pageSize; } } return 0; }
@Override public long preallocate(long bytes) throws IOException { if (!isClosed() && mPageDb.isDurable()) { int pageSize = mPageSize; long pageCount = (bytes + pageSize - 1) / pageSize; if (pageCount > 0) { pageCount = mPageDb.allocatePages(pageCount); if (pageCount > 0) { try { checkpoint(true, 0, 0); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(this, e); throw e; } } return pageCount * pageSize; } } return 0; }
@Override public long preallocate(long bytes) throws IOException { if (!isClosed() && mPageDb.isDurable()) { int pageSize = mPageSize; long pageCount = (bytes + pageSize - 1) / pageSize; if (pageCount > 0) { pageCount = mPageDb.allocatePages(pageCount); if (pageCount > 0) { try { checkpoint(true, 0, 0); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e); closeQuietly(this, e); throw e; } } return pageCount * pageSize; } } return 0; }
DatabaseException.rethrowIfRecoverable(e); throw closeOnFailure(this, e); } finally {
DatabaseException.rethrowIfRecoverable(e); throw closeOnFailure(this, e); } finally {
DatabaseException.rethrowIfRecoverable(e); if (txn != null) { txn.reset(e);
DatabaseException.rethrowIfRecoverable(e); throw closeOnFailure(this, e); } finally {
DatabaseException.rethrowIfRecoverable(e); throw closeOnFailure(this, e); } finally {
DatabaseException.rethrowIfRecoverable(e); if (txn != null) { txn.reset(e);
DatabaseException.rethrowIfRecoverable(e); throw closeOnFailure(this, e); } finally {
DatabaseException.rethrowIfRecoverable(e); throw closeOnFailure(this, e); } finally {