Skip to content

Commit

Permalink
Fix nonforking fast path in InboundHandler (elastic#100389) (elastic#…
Browse files Browse the repository at this point in the history
…100398)

Fixes an equality check missed in elastic#98854.
  • Loading branch information
DaveCTurner authored Oct 6, 2023
1 parent a3d9e72 commit 83f1c1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private <T extends TransportRequest> void handleRequest(TcpChannel channel, Inbo
assert requestId > 0;
request.setRequestId(requestId);
verifyRequestReadFully(stream, requestId, action);
if (ThreadPool.Names.SAME.equals(reg.getExecutor())) {
if (reg.getExecutor() == EsExecutors.DIRECT_EXECUTOR_SERVICE) {
try (var ignored = threadPool.getThreadContext().newTraceContext()) {
doHandleRequest(reg, request, transportChannel);
}
Expand Down

0 comments on commit 83f1c1f

Please sign in to comment.