summaryrefslogtreecommitdiffstats
path: root/src/crimson/osd/object_context_loader.h
diff options
context:
space:
mode:
authorSamuel Just <sjust@redhat.com>2024-06-08 03:30:03 +0200
committerSamuel Just <sjust@redhat.com>2024-06-22 00:24:57 +0200
commit47cc2a871d5d2195d5eb8041cb2f128fddd17fc1 (patch)
treeefae0334117935b539bede282ce63be4993f51de /src/crimson/osd/object_context_loader.h
parentcrimson/.../object_context_loader: remove impossible branch in get_or_load_obc (diff)
downloadceph-47cc2a871d5d2195d5eb8041cb2f128fddd17fc1.tar.xz
ceph-47cc2a871d5d2195d5eb8041cb2f128fddd17fc1.zip
crimson/.../object_context_loader: consolidate obc loading
Signed-off-by: Samuel Just <sjust@redhat.com>
Diffstat (limited to 'src/crimson/osd/object_context_loader.h')
-rw-r--r--src/crimson/osd/object_context_loader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crimson/osd/object_context_loader.h b/src/crimson/osd/object_context_loader.h
index 80cea787630..0d7d7fdd935 100644
--- a/src/crimson/osd/object_context_loader.h
+++ b/src/crimson/osd/object_context_loader.h
@@ -75,6 +75,10 @@ private:
load_obc_iertr::future<> with_head_obc(const hobject_t& oid,
with_obc_func_t&& func);
+ template<RWState::State State, bool track, typename Func>
+ load_obc_iertr::future<> with_locked_obc(const hobject_t& oid,
+ Func&& func);
+
template<RWState::State State>
load_obc_iertr::future<ObjectContextRef>
get_or_load_obc(ObjectContextRef obc,