]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd/object_context_loader: get_or_load to support atomicity
authorMatan Breizman <mbreizma@redhat.com>
Thu, 6 Jun 2024 09:48:09 +0000 (09:48 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 13 Jun 2024 12:34:01 +0000 (15:34 +0300)
commit5bd981153db7e3acbc1de426d319938076ce09d4
tree0cf5c6d130d40ad2a715b6505fa03b7d68ff0b61
parenta23205a320438ab2353f9db409589c23e88f1cd3
crimson/osd/object_context_loader: get_or_load to support atomicity

make use of try_lock in order to support atomicity when called in
ObjectContext::_with_lock()

Co-authored-by: Yingxin Cheng <yingxin.cheng@intel.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 1675ce8c1b5347ad13b65389686cd45853a4149e)
src/crimson/osd/object_context_loader.cc
src/crimson/osd/object_context_loader.h