Skip to content

Commit

Permalink
Log Pg extracted from ShardId
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Sep 21, 2023
1 parent 6004828 commit 0fe44cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/blob_route.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct formatter< homeobject::BlobRoute > {

template < typename FormatContext >
auto format(homeobject::BlobRoute const& r, FormatContext& ctx) {
return format_to(ctx.out(), "{}:{:012x}", r.shard, r.blob);
return format_to(ctx.out(), "{}:{}:{:012x}", (r.shard >> 48), (r.shard & (UINT64_MAX >> 16)), r.blob);
}
};
} // namespace fmt
Expand Down

0 comments on commit 0fe44cc

Please sign in to comment.