SOLR-4117: Retrieving the size of the index may use the wrong index dir if you are replicating.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1414773 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-11-28 15:54:11 +00:00
parent 446080b6b5
commit 5543ee91ec
2 changed files with 5 additions and 1 deletions

View File

@ -262,6 +262,10 @@ Bug Fixes
* SOLR-3842: DIH would not populate multivalued fields if the column name
derives 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
----------------------

View File

@ -467,7 +467,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
Directory 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 {