Esempio n. 1
0
 /**
  * Remove the LedgerEntryPage from the clean page LRU map
  *
  * @param lep Ledger Entry Page object
  */
 private void removeFromCleanPageList(LedgerEntryPage lep) {
   synchronized (lruCleanPageMap) {
     if (!lep.isClean() || lep.inUse()) {
       lruCleanPageMap.remove(lep.getEntryKey());
     }
   }
 }
Esempio n. 2
0
 /**
  * Add the LedgerEntryPage to the clean page LRU map
  *
  * @param lep Ledger Entry Page object
  */
 private void addToCleanPagesList(LedgerEntryPage lep) {
   synchronized (lruCleanPageMap) {
     if (lep.isClean() && !lep.inUse()) {
       lruCleanPageMap.put(lep.getEntryKey(), lep);
     }
   }
 }