]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore: do not capture unused variable
authorKefu Chai <kchai@redhat.com>
Fri, 2 Jul 2021 03:33:43 +0000 (11:33 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 2 Jul 2021 03:54:20 +0000 (11:54 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/seastore.cc
src/crimson/os/seastore/segment_cleaner.cc
src/crimson/os/seastore/transaction_manager.cc

index d969a8e8cbefb5c422117a5cbe32df69372fbc0f..7fba874363721e372e2800f785343483247fff57 100644 (file)
@@ -404,7 +404,7 @@ SeaStore::_omap_get_values_ret SeaStore::_omap_get_values(
     [&](auto &manager, auto &root, auto &ret) {
       return with_trans_intr(
        t,
-       [&, this](auto &t) {
+       [&](auto &t) {
          return trans_intr::do_for_each(
            keys.begin(),
            keys.end(),
index b0815d029c60fb6f5d8f3aea50152d259ddc878d..3ad49b80918acb47fd407f0c78dadd20c258c852 100644 (file)
@@ -286,7 +286,7 @@ SegmentCleaner::gc_trim_journal_ret SegmentCleaner::gc_trim_journal()
       return seastar::do_with(
        ecb->create_transaction(),
        [this](auto &tref) {
-         return with_trans_intr(*tref, [this, &tref](auto &t) {
+         return with_trans_intr(*tref, [this](auto &t) {
            return rewrite_dirty(t, get_dirty_tail()
            ).si_then([this, &t] {
              return ecb->submit_transaction_direct(
@@ -332,7 +332,7 @@ SegmentCleaner::gc_reclaim_space_ret SegmentCleaner::gc_reclaim_space()
          return seastar::do_with(
            ecb->create_transaction(),
            [this, &extents](auto &tref) mutable {
-             return with_trans_intr(*tref, [this, &extents, &tref](auto &t) {
+             return with_trans_intr(*tref, [this, &extents](auto &t) {
                return trans_intr::do_for_each(
                  extents,
                  [this, &t](auto &extent) {
index 603ffc49248fb9b9216dce1f42c2593b388888aa..3f00917e071624458436fa7acfebe30ae4b8b502 100644 (file)
@@ -49,7 +49,7 @@ TransactionManager::mkfs_ertr::future<> TransactionManager::mkfs()
          DEBUGT("about to submit_transaction", *transaction);
          return with_trans_intr(
            *transaction,
-           [this, FNAME, &transaction](auto&) {
+           [this, &transaction](auto&) {
              return submit_transaction_direct(*transaction);
            }
          ).handle_error(