diff --git a/mcrouter/routes/ShadowRoute-inl.h b/mcrouter/routes/ShadowRoute-inl.h index e9153be42..94d1c57b0 100644 --- a/mcrouter/routes/ShadowRoute-inl.h +++ b/mcrouter/routes/ShadowRoute-inl.h @@ -31,6 +31,8 @@ void ShadowRoute::dispatchShadowRequest( // we don't want to spool shadow requests fiber_local::clearAsynclogName(); fiber_local::addRequestClass(RequestClass::kShadow); + // pin shadow requests to specific threads based on destination + fiber_local::enableJumpThreads(); const auto shadowReply = shadow->route(*adjustedReq); if (postShadowReplyFn) { postShadowReplyFn(shadowReply);