From: Xuehan Xu Date: Wed, 16 Aug 2023 11:37:59 +0000 (+0800) Subject: crimson/os/seastore: fix daggling reference of oid in X-Git-Tag: v18.2.1~161^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F53960%2Fhead;p=ceph.git crimson/os/seastore: fix daggling reference of oid in SeaStore::Shard::stat() Signed-off-by: Xuehan Xu (cherry picked from commit 0ee9bb21be89bdcfb3e6cfb224c256d6eccd9f38) --- diff --git a/src/crimson/os/seastore/seastore.cc b/src/crimson/os/seastore/seastore.cc index b44d6696701d..b188724ab989 100644 --- a/src/crimson/os/seastore/seastore.cc +++ b/src/crimson/os/seastore/seastore.cc @@ -958,7 +958,7 @@ seastar::future 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;