Source:
<code>public void dumpIndexesForReplica(String replicaRootDirectory, ArrayList<String> blobList, boolean excludeMiscLogging) { long totalKeysProcessed = 0; File replicaDirectory = new File(replicaRootDirectory); logOutput("Root directory for replica : " + replicaRootDirectory); <START> IndexStats blobStats = new IndexStats(); <END> ConcurrentHashMap<String, BlobStatus> blobIdToStatusMap = new ConcurrentHashMap<String, BlobStatus>(); for (File indexFile : replicaDirectory.listFiles()) { logOutput("Dumping index " + indexFile + " for replica " + replicaDirectory.getName()); totalKeysProcessed += dumpIndex(indexFile, replicaDirectory.getName(), null, blobList, blobIdToStatusMap, blobStats, excludeMiscLogging); } long totalActiveRecords = 0; for (String key : blobIdToStatusMap.keySet()) { BlobStatus blobStatus = blobIdToStatusMap.get(key); logOutput(key + " : " + blobStatus.toString()); if (!blobStatus.isDeletedOrExpired) { totalActiveRecords++; } } logOutput("Total Keys processed for replica " + replicaDirectory.getName() + " : " + totalKeysProcessed); logOutput("Total Put Records " + blobStats.getTotalPutRecords().get()); logOutput("Total Delete Records " + blobStats.getTotalDeleteRecords().get()); logOutput("Total Active Records " + totalActiveRecords); logOutput("Total Duplicate Put Records " + blobStats.getTotalDuplicatePutRecords().get()); logOutput("Total Delete before Put Records " + blobStats.getTotalDeleteBeforePutRecords().get()); logOutput("Total Put after Delete Records " + blobStats.getTotalPutAfterDeleteRecords().get()); logOutput("Total Duplicate Delete Records " + blobStats.getTotalDuplicateDeleteRecords().get()); }</code><technical_language>rename</technical_language>

Target:
public void dumpIndexesForReplica(String replicaRootDirectory, ArrayList<String> blobList, boolean excludeMiscLogging) { long totalKeysProcessed = 0; File replicaDirectory = new File(replicaRootDirectory); logOutput("Root directory for replica : " + replicaRootDirectory); IndexStats indexStats = new IndexStats(); ConcurrentHashMap<String, BlobStatus> blobIdToStatusMap = new ConcurrentHashMap<String, BlobStatus>(); for (File indexFile : replicaDirectory.listFiles()) { logOutput("Dumping index " + indexFile + " for replica " + replicaDirectory.getName()); totalKeysProcessed += dumpIndex(indexFile, replicaDirectory.getName(), null, blobList, blobIdToStatusMap, indexStats, excludeMiscLogging); } long totalActiveRecords = 0; for (String key : blobIdToStatusMap.keySet()) { BlobStatus blobStatus = blobIdToStatusMap.get(key); logOutput(key + " : " + blobStatus.toString()); if (!blobStatus.isDeletedOrExpired) { totalActiveRecords++; } } logOutput("Total Keys processed for replica " + replicaDirectory.getName() + " : " + totalKeysProcessed); logOutput("Total Put Records " + indexStats.getTotalPutRecords().get()); logOutput("Total Delete Records " + indexStats.getTotalDeleteRecords().get()); logOutput("Total Active Records " + totalActiveRecords); logOutput("Total Duplicate Put Records " + indexStats.getTotalDuplicatePutRecords().get()); logOutput("Total Delete before Put Records " + indexStats.getTotalDeleteBeforePutRecords().get()); logOutput("Total Put after Delete Records " + indexStats.getTotalPutAfterDeleteRecords().get()); logOutput("Total Duplicate Delete Records " + indexStats.getTotalDuplicateDeleteRecords().get()); }