SOLR-9835: Fix OnlyLeaderIndexesTest failure, inplace updates is not copied over properly

This commit is contained in:
Cao Manh Dat 2017-03-20 08:21:54 +07:00
parent d60849f377
commit 4bc75dbf23
1 changed files with 1 additions and 4 deletions

View File

@ -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;