From 5ef7194c684232ce16b01ce330cb52b3d71eb232 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Mon, 15 Mar 2021 19:32:10 +0000 Subject: [PATCH] crimson/osd: drop ObjectContext::loaded as it's never read. The `PG::with_obc*` machinery uses the `existed` marker provided by the LRU cache subsystem. Signed-off-by: Radoslaw Zarzynski --- src/crimson/osd/object_context.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/crimson/osd/object_context.h b/src/crimson/osd/object_context.h index 251c8796b1d..02d04cabe8c 100644 --- a/src/crimson/osd/object_context.h +++ b/src/crimson/osd/object_context.h @@ -43,14 +43,13 @@ public: Ref head; // Ref defined as part of ceph::common::intrusive_lru_base ObjectState obs; std::optional ss; - bool loaded : 1; // the watch / notify machinery rather stays away from the hot and // frequented paths. std::map is used mostly because of developer's // convenience. using watch_key_t = std::pair; std::map> watchers; - ObjectContext(const hobject_t &hoid) : obs(hoid), loaded(false) {} + ObjectContext(const hobject_t &hoid) : obs(hoid) {} const hobject_t &get_oid() const { return obs.oi.soid; @@ -74,14 +73,12 @@ public: ceph_assert(is_head()); obs = std::move(_obs); ss = std::move(_ss); - loaded = true; } void set_clone_state(ObjectState &&_obs, Ref &&_head) { ceph_assert(!is_head()); obs = std::move(_obs); head = _head; - loaded = true; } /// pass the provided exception to any waiting consumers of this ObjectContext -- 2.39.5