Apache Solr open-source search software
SOLR-4117: Retrieving the size of the index may use the wrong index dir if you are replicating.
Mark Robert Miller5543ee91ec9d
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 8e8c3fa2cd0..ae17a5c3d95 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -262,6 +262,10 @@ Bug Fixes* SOLR-3842: DIH would not populate multivalued fields if the column namederives from a resolved variable (James Dyer)+* SOLR-4117: Retrieving the size of the index may use the wrong index dir if+ you are replicating.+ (Mark Miller, Markus Jelsma)+Other Changes----------------------diff --git a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.javaindex a3a9cd8d2c0..cfd45db3ace 100644--- a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java@@ -467,7 +467,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAwDirectory dir;long size = 0;try {- dir = core.getDirectoryFactory().get(core.getIndexDir(), null);+ dir = core.getDirectoryFactory().get(core.getNewIndexDir(), null);try {size = DirectoryFactory.sizeOfDirectory(dir);} finally {