log.error("Could not close filer for collection " + canonicalName, e);
return false;
}
// prepare
Filer itsFiler = col.getFiler();
FilerCopy oldFiler;
FilerCopy newFiler;
if (itsFiler == null) {
if (log.isInfoEnabled()) {
log.info("Collection " + col.getCanonicalName() + " has no filer. Skipping...");
}
return true;
} if (itsFiler instanceof BTreeFiler) {
oldFiler = new BTreeCopy();
newFiler = new BTreeCopy();
} else if (itsFiler instanceof HashFiler) {
oldFiler = new HashCopy();
newFiler = new HashCopy();
} else {
if (log.isInfoEnabled()) {
log.info("Collection " + col.getCanonicalName() + " has unrecognized filer '" + itsFiler.getClass().getName() + "'. Skipping...");
}
return true;
}