DatabaseId id2 = o2.getId();
return id1.compareTo(id2);
}
});
PreloadStats pstats = new PreloadStats();
PreloadProcessor callback = new PreloadProcessor
(this, maxBytes, targetTime, pstats, config);
int nDbs = dbImpls.length;
long[] rootLsns = new long[nDbs];
for (int i = 0; i < nDbs; i += 1) {
rootLsns[i] = dbImpls[i].getTree().getRootLsn();
}
SortedLSNTreeWalker walker =
new PreloadLSNTreeWalker(dbImpls, rootLsns, callback, config);
try {
walker.walk();
callback.close();
} catch (HaltPreloadException HPE) {
pstats.setStatus(HPE.getStatus());
}
assert LatchSupport.countLatchesHeld() == 0;
return pstats;
} catch (Error E) {