Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/127494.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 127494
summary: Remove unused field
area: Indice
type: clean code
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ protected void deactivateThrottling(IndexShard shard) {

@Override
public void postIndex(ShardId shardId, Engine.Index index, Engine.IndexResult result) {
postOperation(shardId, index, result);
postOperation(index, result);
}

@Override
public void postDelete(ShardId shardId, Engine.Delete delete, Engine.DeleteResult result) {
postOperation(shardId, delete, result);
postOperation(delete, result);
}

private void postOperation(ShardId shardId, Engine.Operation operation, Engine.Result result) {
private void postOperation(Engine.Operation operation, Engine.Result result) {
recordOperationBytes(operation, result);
// Piggy back on indexing threads to write segments. We're not submitting a task to the index threadpool because we want memory to
// be reclaimed rapidly. This has the downside of increasing the latency of _bulk requests though. Lucene does the same thing in
Expand Down
Loading