mirror of https://github.com/apache/lucene.git
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:
parent
e138de254f
commit
18a1d40283
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue