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:
Shalin Shekhar Mangar 2009-03-29 06:22:07 +00:00
parent a8db365bbc
commit 8d05c79dc3
1 changed files with 1 additions and 1 deletions

View File

@ -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) {