mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
Fix typo in TransportDeleteAction#shardOperationOnPrimary
This commit is contained in:
parent
685a0462d8
commit
d6c40fea20
@ -132,7 +132,7 @@ public class TransportDeleteAction extends TransportReplicationAction<DeleteRequ
|
|||||||
IndexShard indexShard = indicesService.indexServiceSafe(shardRequest.shardId.getIndex()).getShard(shardRequest.shardId.id());
|
IndexShard indexShard = indicesService.indexServiceSafe(shardRequest.shardId.getIndex()).getShard(shardRequest.shardId.id());
|
||||||
Engine.Delete delete = indexShard.prepareDelete(request.type(), request.id(), request.version(), request.versionType(), Engine.Operation.Origin.PRIMARY);
|
Engine.Delete delete = indexShard.prepareDelete(request.type(), request.id(), request.version(), request.versionType(), Engine.Operation.Origin.PRIMARY);
|
||||||
indexShard.delete(delete);
|
indexShard.delete(delete);
|
||||||
// update the request with teh version so it will go to the replicas
|
// update the request with the version so it will go to the replicas
|
||||||
request.versionType(delete.versionType().versionTypeForReplicationAndRecovery());
|
request.versionType(delete.versionType().versionTypeForReplicationAndRecovery());
|
||||||
request.version(delete.version());
|
request.version(delete.version());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user