@@ -156,12 +156,12 @@ protected MultiGetShardResponse shardOperation(MultiGetShardRequest request, Sha
156156 }
157157
158158 @ Override
159- protected Executor getExecutor (MultiGetShardRequest request , ShardId shardId ) {
159+ protected Executor getExecutor (ShardId shardId ) {
160160 final ClusterState clusterState = clusterService .state ();
161161 if (projectResolver .getProjectMetadata (clusterState ).index (shardId .getIndex ()).isSystem ()) {
162162 return threadPool .executor (executorSelector .executorForGet (shardId .getIndexName ()));
163163 } else {
164- return super .getExecutor (request , shardId );
164+ return super .getExecutor (shardId );
165165 }
166166 }
167167
@@ -290,7 +290,7 @@ private void tryShardMultiGetFromTranslog(
290290 assert r .primaryTerm () > Engine .UNKNOWN_PRIMARY_TERM ;
291291 final ActionListener <Long > termAndGenerationListener = ContextPreservingActionListener .wrapPreservingContext (
292292 listener .delegateFailureAndWrap (
293- (ll , aLong ) -> getExecutor (request , shardId ).execute (
293+ (ll , aLong ) -> getExecutor (shardId ).execute (
294294 ActionRunnable .supply (ll , () -> handleLocalGets (request , r .multiGetShardResponse (), shardId ))
295295 )
296296 ),
@@ -299,7 +299,7 @@ private void tryShardMultiGetFromTranslog(
299299 indexShard .waitForPrimaryTermAndGeneration (r .primaryTerm (), r .segmentGeneration (), termAndGenerationListener );
300300 }
301301 }
302- }), TransportShardMultiGetFomTranslogAction .Response ::new , getExecutor (request , shardId ))
302+ }), TransportShardMultiGetFomTranslogAction .Response ::new , getExecutor (shardId ))
303303 );
304304 }
305305
@@ -353,7 +353,7 @@ private void getAndAddToResponse(
353353 private void asyncShardMultiGet (MultiGetShardRequest request , ShardId shardId , ActionListener <MultiGetShardResponse > listener )
354354 throws IOException {
355355 if (request .refresh () && request .realtime () == false ) {
356- getExecutor (request , shardId ).execute (ActionRunnable .wrap (listener , l -> {
356+ getExecutor (shardId ).execute (ActionRunnable .wrap (listener , l -> {
357357 var indexShard = getIndexShard (shardId );
358358 indexShard .externalRefresh ("refresh_flag_mget" , l .map (r -> shardOperation (request , shardId )));
359359 }));
0 commit comments