]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: initialize v with capture list
authorKefu Chai <kchai@redhat.com>
Sun, 20 Dec 2020 16:48:51 +0000 (00:48 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 20 Dec 2020 16:48:53 +0000 (00:48 +0800)
simpler this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/replicated_recovery_backend.cc

index 98619f03673860220e1a86fcd933b871b331a534..70c268e83aff1c9dfa0c2e7b0788d6e14e18f424 100644 (file)
@@ -354,11 +354,10 @@ seastar::future<PushOp> ReplicatedRecoveryBackend::build_push_op(
   return seastar::do_with(ObjectRecoveryProgress(progress),
                          uint64_t(crimson::common::local_conf()
                            ->osd_recovery_max_chunk),
-                         eversion_t(),
+                         recovery_info.version,
                          PushOp(),
     [this, &recovery_info, &progress, stat]
     (auto& new_progress, auto& available, auto& v, auto& pop) {
-    v = recovery_info.version;
     return read_metadata_for_push_op(recovery_info.soid,
                                      progress, new_progress,
                                      v, &pop).then([&](eversion_t local_ver) mutable {