envConfig.setReadOnly(true);
Environment env = new Environment(envHome, envConfig);
EnvironmentImpl envImpl = DbInternal.getEnvironmentImpl(env);
try {
FileReader reader;
if (vlsnDump) {
out.println("Dump VLSNIndex LNs");
reader = new VLSNIndexReader(env, out, startLsn, endLsn);
} else if (repGroupDump) {
out.println("Dump RepGroup LNs");
reader = new RepGroupReader(env, out, startLsn, endLsn);
} else if (verifyStream) {
out.println("Replication stream: check that vlsns ascend");
reader = new VerifyReader(envImpl, out, startLsn, endLsn);
} else {
out.println("No action specified.");
return;
}
while (reader.readNextEntry()) {
}
if ((!vlsnDump) && (!repGroupDump)) {
((VerifyReader) reader).displayLast();
VLSNIndex.verifyDb(env, out, verbose);