]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: fix ObjectContextRef reference leak
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 3 Jan 2022 11:13:33 +0000 (20:13 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 21 Feb 2022 01:03:43 +0000 (10:03 +0900)
commit4fd423ff04412f7160ccdf4565ef77e709a87518
tree73245268947e93cca530e6d5ba5b7d7cc80d8d79
parentac826d1665a2548d2bd18edc4c35a172f7159101
osd: fix ObjectContextRef reference leak

After start_dedup() is called on the object,
several CREATE_OR_GET_REFs are sent.
In the meantime, the ObjectContextRef can be evicted
from the cache while the deduplication is in progress.

To avoid this situation, this commit adds ObjectContextRef
to ManifestOp as FlushOp works.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h