mirror of https://github.com/apache/lucene.git
SOLR-9835: Fix OnlyLeaderIndexesTest failure, inplace updates is not copied over properly
This commit is contained in:
parent
d60849f377
commit
4bc75dbf23
|
@ -1197,10 +1197,7 @@ public static final int VERSION_IDX = 1;
|
||||||
switch (oper) {
|
switch (oper) {
|
||||||
case UpdateLog.UPDATE_INPLACE:
|
case UpdateLog.UPDATE_INPLACE:
|
||||||
case UpdateLog.ADD: {
|
case UpdateLog.ADD: {
|
||||||
SolrInputDocument sdoc = (SolrInputDocument) entry.get(entry.size() - 1);
|
AddUpdateCommand cmd = convertTlogEntryToAddUpdateCommand(req, entry, oper, version);
|
||||||
AddUpdateCommand cmd = new AddUpdateCommand(req);
|
|
||||||
cmd.solrDoc = sdoc;
|
|
||||||
cmd.setVersion(version);
|
|
||||||
cmd.setFlags(UpdateCommand.IGNORE_AUTOCOMMIT);
|
cmd.setFlags(UpdateCommand.IGNORE_AUTOCOMMIT);
|
||||||
add(cmd);
|
add(cmd);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue