]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: fix daggling reference of oid in 53023/head
authorXuehan Xu <xuxuehan@qianxin.com>
Wed, 16 Aug 2023 11:37:59 +0000 (19:37 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Wed, 16 Aug 2023 11:41:57 +0000 (19:41 +0800)
SeaStore::Shard::stat()

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/seastore.cc

index b44d6696701df12950d61aeffe672a52ced2266c..b188724ab9895d72629351530516d7ee89d21aaa 100644 (file)
@@ -958,7 +958,7 @@ seastar::future<struct stat> SeaStore::Shard::stat(
     Transaction::src_t::READ,
     "stat",
     op_type_t::STAT,
-    [=, this, &oid](auto &t, auto &onode) {
+    [=, this](auto &t, auto &onode) {
       struct stat st;
       auto &olayout = onode.get_layout();
       st.st_size = olayout.size;