TreeLocation location = new TreeLocation();
for (int i = 0; i < pendingLNs.length; i += 1) {
LNInfo info = pendingLNs[i];
DatabaseId dbId = info.getDbId();
DatabaseImpl db = dbMapTree.getDb(dbId, lockTimeout);
byte[] key = info.getKey();
byte[] dupKey = info.getDupKey();
LN ln = info.getLN();
/* Evict before processing each entry. */
if (DO_CRITICAL_EVICTION) {
env.getEvictor().doCriticalEviction();
}
processPendingLN
(ln, db, key, dupKey, location);
}
}
DatabaseId[] pendingDBs = fileSelector.getPendingDBs();
if (pendingDBs != null) {
for (int i = 0; i < pendingDBs.length; i += 1) {
DatabaseId dbId = pendingDBs[i];
DatabaseImpl db = dbMapTree.getDb(dbId, lockTimeout);
if (db == null || db.isDeleteFinished()) {
fileSelector.removePendingDB(dbId);
}
}