]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Tue, 7 Mar 2023 09:04:07 +0000 (09:04 +0000)
commite702dc39606bfcc3899307453a6b54af11b8b803
treed7d2b3f7e0602b57d02def0edfd8b85d95e13777
parentc6ab21791545598473bd044ce602eea2bba892d3
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>
src/crimson/osd/object_context.h
src/crimson/osd/object_context_loader.cc
src/crimson/osd/ops_executer.cc