SOLR-2957: fix default core behavior when in zk mode

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1242843 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-02-10 16:42:57 +00:00
parent e138de254f
commit 18a1d40283
1 changed files with 4 additions and 3 deletions

View File

@ -184,9 +184,7 @@ public class SolrDispatchFilter implements Filter
}
}
if (core == null) {
if (cores.isZooKeeperAware() && corename.length() == 0) {
core = cores.getCore("");
} else if (!cores.isZooKeeperAware()) {
if (!cores.isZooKeeperAware() ) {
core = cores.getCore("");
}
}
@ -199,6 +197,9 @@ public class SolrDispatchFilter implements Filter
if (core != null) {
// we found a core, update the path
path = path.substring( idx );
} else {
// try the default core
core = cores.getCore("");
}
// TODO: if we couldn't find it locally, look on other nodes
}