From 7e208d97e83e780bb939391df674c231a5f2cad8 Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Mon, 1 Apr 2024 08:20:14 +0000 Subject: [PATCH] crimson/osd/object_context_loader: add comment to with_head_obc Signed-off-by: Matan Breizman --- src/crimson/osd/object_context_loader.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crimson/osd/object_context_loader.cc b/src/crimson/osd/object_context_loader.cc index 4f0e2aeff0a4b..885231decda94 100644 --- a/src/crimson/osd/object_context_loader.cc +++ b/src/crimson/osd/object_context_loader.cc @@ -22,6 +22,10 @@ using crimson::common::local_conf; return get_or_load_obc(obc, existed) .safe_then_interruptible( [func = std::move(func)](auto obc) { + // The template with_obc_func_t wrapper supports two obcs (head and clone). + // In the 'with_head_obc' case, however, only the head is in use. + // Pass the same head obc twice in order to + // to support the generic with_obc sturcture. return std::move(func)(obc, obc); }); }).finally([FNAME, this, obc=std::move(obc)] { -- 2.39.5