]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: Remove head memeber from ObjectContext
authorMatan Breizman <mbreizma@redhat.com>
Sun, 19 Feb 2023 10:49:47 +0000 (10:49 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 21 May 2023 08:12:30 +0000 (08:12 +0000)
commit87f05bbd3119cae44b3ef05e25495b4e2d771702
treea878c43851528a7bc078c6e71195770f6bde9bfd
parent0ba04401ac4ad88f21d82af36744b43331ce4ef2
crimson/osd: Remove head memeber from ObjectContext

Before this patch, ObjectContext had a head member which was used
to get the head obc of a clone object.
This member caused the head object to being referenced while
attempting to 'clear_replica_obc' (Since we only evict un-referenced
obc from the obc_registery).
This mechanism, of obtaining the head, is no longer needed since
'with_clone_obc' loads the head object context first (using
oid.get_head).

In this commit, head is removed from ObjectContext class and users
are removed as well.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit e702dc39606bfcc3899307453a6b54af11b8b803)
src/crimson/osd/object_context.h
src/crimson/osd/object_context_loader.cc
src/crimson/osd/ops_executer.cc