From: Xuehan Xu Date: Mon, 17 Jun 2024 14:54:09 +0000 (+0800) Subject: crimson/os/seastore/transaction: minor bug fix X-Git-Tag: v19.1.1~19^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bc61d72ebd3411e825581f2e3519bb632ad04a59;p=ceph.git crimson/os/seastore/transaction: minor bug fix Signed-off-by: Xuehan Xu (cherry picked from commit 3e1c083e4fb6a92e622fb5a635c175a6528e213d) --- diff --git a/src/crimson/os/seastore/transaction.h b/src/crimson/os/seastore/transaction.h index 90a9fc80883d..f6af7cfc3508 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;