Skip to content

Commit b469cbb

Browse files
committed
crimson/os/seastore: fix wrong-positioned asserts
Fixes: https://tracker.ceph.com/issues/64535 Signed-off-by: Xuehan Xu <[email protected]>
1 parent 10402b6 commit b469cbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/crimson/os/seastore/seastore.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,12 +725,12 @@ SeaStore::Shard::list_objects(CollectionRef ch,
725725
LOG_PREFIX(SeaStore::list_objects);
726726
DEBUGT("got {} objects, left limit {}",
727727
t, next_objects.size(), limit);
728-
if (last && std::get<1>(ret) == pend) {
729-
std::get<1>(ret) = end;
730-
}
731728
assert(limit == 0 ||
732729
std::get<1>(ret) == pend ||
733730
std::get<1>(ret) == ghobject_t::get_max());
731+
if (last && std::get<1>(ret) == pend) {
732+
std::get<1>(ret) = end;
733+
}
734734
return list_iertr::make_ready_future<
735735
seastar::stop_iteration
736736
>(seastar::stop_iteration::no);

0 commit comments

Comments
 (0)