mirror of https://github.com/apache/lucene.git
SOLR-658 -- Compare the index directories using their canonical paths
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@759641 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a8db365bbc
commit
8d05c79dc3
|
@ -1060,7 +1060,7 @@ public final class SolrCore implements SolrInfoMBean {
|
|||
String newIndexDir = getNewIndexDir();
|
||||
if (newestSearcher != null) {
|
||||
IndexReader currentReader = newestSearcher.get().getReader();
|
||||
if(new File(getIndexDir()).equals(new File(newIndexDir))) {
|
||||
if(new File(getIndexDir()).getCanonicalFile().equals(new File(newIndexDir).getCanonicalFile())) {
|
||||
IndexReader newReader = currentReader.reopen();
|
||||
|
||||
if(newReader == currentReader) {
|
||||
|
|
Loading…
Reference in New Issue