mirror of
https://github.com/ceph/ceph
synced 2025-01-21 02:31:19 +00:00
crimson/osd: implement ShardServices::get_hb_stamps()
PeeringState::proc_lease() requires a valid hb_stamps[0], which is in turned maintained by `pl`. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
b031ecda44
commit
3138e195fa
@ -239,8 +239,11 @@ seastar::future<> ShardServices::osdmap_subscribe(version_t epoch, bool force_re
|
||||
|
||||
HeartbeatStampsRef ShardServices::get_hb_stamps(int peer)
|
||||
{
|
||||
#warning writeme
|
||||
return HeartbeatStampsRef();
|
||||
auto [stamps, added] = heartbeat_stamps.try_emplace(peer);
|
||||
if (added) {
|
||||
stamps->second = ceph::make_ref<HeartbeatStamps>(peer);
|
||||
}
|
||||
return stamps->second;
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -157,6 +157,7 @@ public:
|
||||
return ceph::mono_clock::now() - startup_time;
|
||||
}
|
||||
HeartbeatStampsRef get_hb_stamps(int peer);
|
||||
std::map<int, HeartbeatStampsRef> heartbeat_stamps;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user