Skip to content

Commit 23cc895

Browse files
committed
crimson/os/seastore/logical_child_node: drop unnecessary
"has_parent_tracker()" check Signed-off-by: Xuehan Xu <[email protected]>
1 parent efb30b1 commit 23cc895

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/crimson/os/seastore/logical_child_node.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class LogicalChildNode : public LogicalCachedExtent,
2121
LogicalChildNode(T&&... t) : LogicalCachedExtent(std::forward<T>(t)...) {}
2222

2323
virtual ~LogicalChildNode() {
24-
if (this->has_parent_tracker() &&
25-
this->is_valid() &&
24+
if (this->is_valid() &&
2625
!this->is_pending()) {
2726
lba_child_node_t::destroy();
2827
}

0 commit comments

Comments
 (0)