]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: use this explicitly 41222/head
authorKefu Chai <kchai@redhat.com>
Fri, 7 May 2021 13:39:36 +0000 (21:39 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 7 May 2021 13:40:46 +0000 (21:40 +0800)
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 <kchai@redhat.com>
src/crimson/os/seastore/transaction_manager.cc
src/crimson/os/seastore/transaction_manager.h

index c25e826c294868d4d4725fb5842266fef294cada..93891e5496a4cebbf5d5893fed60c9f46c6c1f22 100644 (file)
@@ -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();
         });
index 75f0ed6537ead4fd15d0490ef3354c0eedfa2188..61b85e702324561420f2bacebf0ecead24d24cab 100644 (file)
@@ -178,7 +178,7 @@ public:
        }
        ceph_assert(0 == "Should be impossible");
       }
-      return pin_to_extent<T>(t, std::move(pins.front()));
+      return this->pin_to_extent<T>(t, std::move(pins.front()));
     });
   }