From: Xuehan Xu Date: Mon, 17 Jun 2024 14:54:09 +0000 (+0800) Subject: crimson/os/seastore/transaction: minor bug fix X-Git-Tag: v20.0.0~1647^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3e1c083e4fb6a92e622fb5a635c175a6528e213d;p=ceph.git crimson/os/seastore/transaction: minor bug fix Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/transaction.h b/src/crimson/os/seastore/transaction.h index 90a9fc80883..f6af7cfc350 100644 --- a/src/crimson/os/seastore/transaction.h +++ b/src/crimson/os/seastore/transaction.h @@ -92,7 +92,7 @@ public: *out = CachedExtentRef(&*iter); SUBTRACET(seastore_cache, "{} is present in write_set -- {}", *this, addr, *iter); - assert((*out)->is_valid()); + assert(!out || (*out)->is_valid()); return get_extent_ret::PRESENT; } else if (retired_set.count(addr)) { return get_extent_ret::RETIRED;