]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/onode-staged-tree: add invalid state to tree_cursor_t
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 18 Mar 2021 09:17:22 +0000 (17:17 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 29 Apr 2021 08:03:37 +0000 (16:03 +0800)
commit827fcde0292bc8f828ceae5696574c497f578751
tree0e3c5c9340716d04e94a2b493af94a5285e6312f
parent72a0b6e9de24435f34ed8b572233b42e59cbccd8
crimson/onode-staged-tree: add invalid state to tree_cursor_t

If a key-value pair is erased from the tree, the according tree_cursor_t
is untracked and becomes invalid.

From Cursor point-of-view, it becomes an end Cursor if the internal
cursor is invalidated.

From Value point-of-view, it becomes untracked if the value is erased.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/onode_manager/staged-fltree/node.cc
src/crimson/os/seastore/onode_manager/staged-fltree/node.h
src/crimson/os/seastore/onode_manager/staged-fltree/tree.h
src/crimson/os/seastore/onode_manager/staged-fltree/value.cc
src/crimson/os/seastore/onode_manager/staged-fltree/value.h