Skip to content

Commit

Permalink
fix setting bucket id in a request
Browse files Browse the repository at this point in the history
Summary: as title

Reviewed By: disylh

Differential Revision: D50487693

fbshipit-source-id: ecf15fb47317a0d55a8a0a57fef8729e557c1e8b
  • Loading branch information
Lenar Fatikhov authored and facebook-github-bot committed Oct 20, 2023
1 parent d22e9b8 commit f7b73ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mcrouter/routes/DestinationRoute.h
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion mcrouter/routes/DistributionRoute.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f7b73ea

Please sign in to comment.