mirror of https://github.com/apache/lucene.git
SOLR-3527: SolrCmdDistributor drops some of the important commit attributes (maxOptimizeSegments, softCommit, expungeDeletes) when sending a commit to replicas.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1384964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3c95aa47d0
commit
1ff0eaec90
|
@ -218,6 +218,10 @@ Bug Fixes
|
||||||
* SOLR-3641: CoreContainer is not persisting roles core attribute.
|
* SOLR-3641: CoreContainer is not persisting roles core attribute.
|
||||||
(hossman, Mark Miller)
|
(hossman, Mark Miller)
|
||||||
|
|
||||||
|
* SOLR-3527: SolrCmdDistributor drops some of the important commit attributes
|
||||||
|
(maxOptimizeSegments, softCommit, expungeDeletes) when sending a commit to
|
||||||
|
replicas. (Andy Laird, Tomas Fernandez Lobbe, Mark Miller)
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ public class SolrCmdDistributor {
|
||||||
void addCommit(UpdateRequestExt ureq, CommitUpdateCommand cmd) {
|
void addCommit(UpdateRequestExt ureq, CommitUpdateCommand cmd) {
|
||||||
if (cmd == null) return;
|
if (cmd == null) return;
|
||||||
ureq.setAction(cmd.optimize ? AbstractUpdateRequest.ACTION.OPTIMIZE
|
ureq.setAction(cmd.optimize ? AbstractUpdateRequest.ACTION.OPTIMIZE
|
||||||
: AbstractUpdateRequest.ACTION.COMMIT, false, cmd.waitSearcher);
|
: AbstractUpdateRequest.ACTION.COMMIT, false, cmd.waitSearcher, cmd.maxOptimizeSegments, cmd.softCommit, cmd.expungeDeletes);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean flushAdds(int limit) {
|
boolean flushAdds(int limit) {
|
||||||
|
|
Loading…
Reference in New Issue