From: Kefu Chai Date: Fri, 7 May 2021 13:39:36 +0000 (+0800) Subject: crimson/os: use this explicitly X-Git-Tag: v17.1.0~2037^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bdaa8bd05f643778d954b22494ab6ecc7269241e;p=ceph.git crimson/os: use this explicitly to silence the warning from clang. it fails to figure out that this is actually used, and complains that this is captured but not used. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/os/seastore/transaction_manager.cc b/src/crimson/os/seastore/transaction_manager.cc index c25e826c29486..93891e5496a4c 100644 --- a/src/crimson/os/seastore/transaction_manager.cc +++ b/src/crimson/os/seastore/transaction_manager.cc @@ -187,7 +187,7 @@ TransactionManager::refs_ret TransactionManager::dec_ref( [this, &t] (auto &&offsets, auto &refcnt) { return crimson::do_for_each(offsets.begin(), offsets.end(), [this, &t, &refcnt] (auto &laddr) { - return dec_ref(t, laddr).safe_then([&refcnt] (auto ref) { + return this->dec_ref(t, laddr).safe_then([&refcnt] (auto ref) { refcnt.push_back(ref); return ref_ertr::now(); }); diff --git a/src/crimson/os/seastore/transaction_manager.h b/src/crimson/os/seastore/transaction_manager.h index 75f0ed6537ead..61b85e7023245 100644 --- a/src/crimson/os/seastore/transaction_manager.h +++ b/src/crimson/os/seastore/transaction_manager.h @@ -178,7 +178,7 @@ public: } ceph_assert(0 == "Should be impossible"); } - return pin_to_extent(t, std::move(pins.front())); + return this->pin_to_extent(t, std::move(pins.front())); }); }