From: Xuehan Xu Date: Thu, 23 Feb 2023 01:30:59 +0000 (+0000) Subject: crimson/os/seastore/cache: return the RootBlock it's waiting on in X-Git-Tag: v18.1.0~298^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7ad7b31fef0b37086e826def64f6a6aa78d9b056;p=ceph.git crimson/os/seastore/cache: return the RootBlock it's waiting on in `Cache::get_root()` Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index 4685cdb9791a..97b60eb40068 100644 --- a/src/crimson/os/seastore/cache.cc +++ b/src/crimson/os/seastore/cache.cc @@ -1891,7 +1891,7 @@ Cache::get_root_ret Cache::get_root(Transaction &t) DEBUGT("root not on t -- {}", t, *root); t.root = root; t.add_to_read_set(root); - return root->wait_io().then([this] { + return root->wait_io().then([root=root] { return get_root_iertr::make_ready_future( root); });