You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2012/11/28 16:54:12 UTC
svn commit: r1414773 - in /lucene/dev/trunk/solr: CHANGES.txt
core/src/java/org/apache/solr/handler/ReplicationHandler.java
Author: markrmiller
Date: Wed Nov 28 15:54:11 2012
New Revision: 1414773
URL: http://svn.apache.org/viewvc?rev=1414773&view=rev
Log:
SOLR-4117: Retrieving the size of the index may use the wrong index dir if you are replicating.
Modified:
lucene/dev/trunk/solr/CHANGES.txt
lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1414773&r1=1414772&r2=1414773&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Wed Nov 28 15:54:11 2012
@@ -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
----------------------
Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java?rev=1414773&r1=1414772&r2=1414773&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java Wed Nov 28 15:54:11 2012
@@ -467,7 +467,7 @@ public class ReplicationHandler extends
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 {