]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: return the RootBlock it's waiting on in
authorXuehan Xu <xxhdx1985126@gmail.com>
Thu, 23 Feb 2023 01:30:59 +0000 (01:30 +0000)
committerXuehan Xu <xxhdx1985126@gmail.com>
Thu, 23 Feb 2023 01:30:59 +0000 (01:30 +0000)
`Cache::get_root()`

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/os/seastore/cache.cc

index 4685cdb9791af81c4ae5e5dfec6e518eb54823f0..97b60eb400686ce8669002ef38cf8e9b3c5e4933 100644 (file)
@@ -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<RootBlockRef>(
        root);
     });