From 7ad7b31fef0b37086e826def64f6a6aa78d9b056 Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Thu, 23 Feb 2023 01:30:59 +0000 Subject: [PATCH] crimson/os/seastore/cache: return the RootBlock it's waiting on in `Cache::get_root()` Signed-off-by: Xuehan Xu --- src/crimson/os/seastore/cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index 4685cdb9791..97b60eb4006 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); }); -- 2.39.5