From b04e07cb4c9921174796e26a62c3c4f76f9faec8 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 10 Mar 2020 23:48:55 +0100 Subject: [PATCH] crimson/osd/object_context: implement maybe_get_cached_obc(). Signed-off-by: Radoslaw Zarzynski --- src/crimson/osd/object_context.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/crimson/osd/object_context.h b/src/crimson/osd/object_context.h index 2a5461c4d90..c7d70c19344 100644 --- a/src/crimson/osd/object_context.h +++ b/src/crimson/osd/object_context.h @@ -235,6 +235,9 @@ public: std::pair get_cached_obc(const hobject_t &hoid) { return obc_lru.get_or_create(hoid); } + ObjectContextRef maybe_get_cached_obc(const hobject_t &hoid) { + return obc_lru.get(hoid); + } const char** get_tracked_conf_keys() const final; void handle_conf_change(const crimson::common::ConfigProxy& conf, -- 2.47.3