From f7b73ea428ec7608fef0bc19de6b782b15661b8b Mon Sep 17 00:00:00 2001 From: Lenar Fatikhov Date: Fri, 20 Oct 2023 10:39:02 -0700 Subject: [PATCH] fix setting bucket id in a request Summary: as title Reviewed By: disylh Differential Revision: D50487693 fbshipit-source-id: ecf15fb47317a0d55a8a0a57fef8729e557c1e8b --- mcrouter/routes/DestinationRoute.h | 2 +- mcrouter/routes/DistributionRoute.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mcrouter/routes/DestinationRoute.h b/mcrouter/routes/DestinationRoute.h index 045c0af0e..7dc23f37a 100644 --- a/mcrouter/routes/DestinationRoute.h +++ b/mcrouter/routes/DestinationRoute.h @@ -109,7 +109,7 @@ class DestinationRoute { auto finalReq = addDeleteRequestSource( req, memcache::McDeleteRequestSource::FAILED_INVALIDATION); // Make sure bucket id is set in request - finalReq.bucketId_ref() = *bucketId; + finalReq.bucketId_ref() = fmt::to_string(*bucketId); spool(finalReq, axonCtx, bucketId); auto reply = createReply(DefaultReply, finalReq); reply.setDestination(destination_->accessPoint()); diff --git a/mcrouter/routes/DistributionRoute.h b/mcrouter/routes/DistributionRoute.h index 85b84b6d3..1f73a678f 100644 --- a/mcrouter/routes/DistributionRoute.h +++ b/mcrouter/routes/DistributionRoute.h @@ -98,7 +98,7 @@ class DistributionRoute { ? memcache::McDeleteRequestSource::CROSS_REGION_BROADCAST_INVALIDATION : memcache::McDeleteRequestSource::CROSS_REGION_DIRECTED_INVALIDATION; auto finalReq = addDeleteRequestSource(req, source); - finalReq.bucketId_ref() = *bucketId; + finalReq.bucketId_ref() = fmt::to_string(*bucketId); auto axonLogRes = spoolAxonProxy( proxy, finalReq, axonCtx, *bucketId, std::move(*distributionRegion)); if (axonLogRes) {