]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/transaction: minor bug fix
authorXuehan Xu <xuxuehan@qianxin.com>
Mon, 17 Jun 2024 14:54:09 +0000 (22:54 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Wed, 26 Jun 2024 02:59:20 +0000 (10:59 +0800)
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/transaction.h

index 90a9fc80883d88aae976587ee3e751481a74cfd0..f6af7cfc350854aa48f147d432d01a4ffaf3c28d 100644 (file)
@@ -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;