Skip to content

Commit b1c59ca

Browse files
committed
crimson/os/seastore/cached_extent: add comments to elaborate why
MUTATION_PENDING and under-io extents are "stable" Signed-off-by: Xuehan Xu <[email protected]>
1 parent 7aa972d commit b1c59ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/crimson/os/seastore/cached_extent.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,9 @@ class CachedExtent
426426
/// Returns true if extent is stable and shared among transactions
427427
bool is_stable() const {
428428
return is_stable_written() ||
429+
// MUTATION_PENDING and under-io extents are to-be-stable extents,
430+
// for the sake of caveats that checks the correctness of extents
431+
// states, we consider them stable.
429432
(is_mutation_pending() &&
430433
is_pending_io());
431434
}

0 commit comments

Comments
 (0)