Esempio n. 1
0
 @Override
 public void deletePage(long id) throws IOException {
   checkId(id);
   CommitLock.Shared shared = mCommitLock.acquireShared();
   try {
     mPageManager.deletePage(id);
   } catch (IOException e) {
     throw e;
   } catch (Throwable e) {
     throw closeOnFailure(e);
   } finally {
     shared.release();
   }
   mPageArray.uncachePage(id);
 }
Esempio n. 2
0
 @Override
 public void uncachePage(long id) throws IOException {
   mPageArray.uncachePage(id);
 }