]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/object_context: implement maybe_get_cached_obc().
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 10 Mar 2020 22:48:55 +0000 (23:48 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 7 Jul 2020 10:46:10 +0000 (12:46 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/object_context.h

index 2a5461c4d90930c71c0083338114a63d769dfb66..c7d70c193446c11428a2750a12bb6bd0636ba504 100644 (file)
@@ -235,6 +235,9 @@ public:
   std::pair<ObjectContextRef, bool> 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,