mirror of https://github.com/apache/lucene.git
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:
parent
446080b6b5
commit
5543ee91ec
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue