diff options
author | Matan Breizman <mbreizma@redhat.com> | 2023-07-02 14:34:54 +0200 |
---|---|---|
committer | Matan Breizman <mbreizma@redhat.com> | 2023-11-15 17:12:48 +0100 |
commit | 7cd0aa0db0c8f7452d7705a93d765981753b48c4 (patch) | |
tree | 9b55909bf0923ef85416f573f066e24f04b905bd | |
parent | crimson/osd: remove do_osd_ops_success_func_t and do_osd_ops_failure_func_t (diff) | |
download | ceph-7cd0aa0db0c8f7452d7705a93d765981753b48c4.tar.xz ceph-7cd0aa0db0c8f7452d7705a93d765981753b48c4.zip |
crimson/osd/shard_services: add comment to next_tid initialization
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
-rw-r--r-- | src/crimson/osd/shard_services.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crimson/osd/shard_services.cc b/src/crimson/osd/shard_services.cc index 404f28d7d7f..c0688f95769 100644 --- a/src/crimson/osd/shard_services.cc +++ b/src/crimson/osd/shard_services.cc @@ -47,6 +47,8 @@ PerShardState::PerShardState( perf(perf), recoverystate_perf(recoverystate_perf), throttler(crimson::common::local_conf()), next_tid( + // Use shard_id to initialize upper 8 bits of counters to ensure that + // ids generated by different shards are disjoint static_cast<ceph_tid_t>(seastar::this_shard_id()) << (std::numeric_limits<ceph_tid_t>::digits - 8)), startup_time(startup_time) |