Skip to content

Commit b3187f4

Browse files
committed
crimson/os/seastore/transaction: stable extent in add_present_to_retired_set() can be pending-io
Signed-off-by: Yingxin Cheng <[email protected]>
1 parent 8e92395 commit b3187f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crimson/os/seastore/transaction.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ class Transaction {
151151
assert(read_set.count(ref->prior_instance->get_paddr(), extent_cmp_t{}));
152152
ref->reset_prior_instance();
153153
} else {
154-
ceph_assert(ref->is_stable_ready());
154+
ceph_assert(ref->is_stable());
155+
ceph_assert(ref->get_paddr().is_absolute());
155156
// XXX: prevent double retire -- retired_set.count(ref->get_paddr()) == 0
156157
// If it's already in the set, insert here will be a noop,
157158
// which is what we want.

0 commit comments

Comments
 (0)