]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/object_context_loader: get_or_load to support atomicity 57725/head
authorMatan Breizman <mbreizma@redhat.com>
Thu, 6 Jun 2024 09:48:09 +0000 (09:48 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 6 Jun 2024 13:57:02 +0000 (13:57 +0000)
commit1675ce8c1b5347ad13b65389686cd45853a4149e
treea5816feaef3f57d18b3b9c6867e935619bf7209d
parentf63d76a2ae348e1419dab20fab9557ce483080ca
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>
src/crimson/osd/object_context_loader.cc
src/crimson/osd/object_context_loader.h