]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: don't warn if backfill peer stats don't match
authorSamuel Just <sam.just@inktank.com>
Tue, 10 Jul 2012 00:57:03 +0000 (17:57 -0700)
committerSage Weil <sage@inktank.com>
Wed, 11 Jul 2012 01:19:57 +0000 (18:19 -0700)
pinfo.stats might be wrong if we did log-based recovery on the
backfilled portion in addition to continuing backfill.

bug #2750

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 2e2b5a43cbbf31a37d4f43d6e174947056c79170..d3348de9c7cacdf5002732dd962c2570bd7a8d03 100644 (file)
@@ -6319,14 +6319,10 @@ int ReplicatedPG::recover_backfill(int max)
     MOSDPGBackfill *m = NULL;
     if (bound.is_max()) {
       m = new MOSDPGBackfill(MOSDPGBackfill::OP_BACKFILL_FINISH, e, e, info.pgid);
-      if (info.stats.stats.sum.num_bytes != pinfo.stats.stats.sum.num_bytes)
-       osd->clog.error() << info.pgid << " backfill osd." << backfill_target << " stat mismatch on finish: "
-                         << "num_bytes " << pinfo.stats.stats.sum.num_bytes
-                         << " != expected " << info.stats.stats.sum.num_bytes << "\n";
-      if (info.stats.stats.sum.num_objects != pinfo.stats.stats.sum.num_objects)
-       osd->clog.error() << info.pgid << " backfill osd." << backfill_target << " stat mismatch on finish: "
-                         << "num_objects " << pinfo.stats.stats.sum.num_objects
-                         << " != expected " << info.stats.stats.sum.num_objects << "\n";
+      /* pinfo.stats might be wrong if we did log-based recovery on the
+       * backfilled portion in addition to continuing backfill.
+       */
+      pinfo.stats = info.stats;
       start_recovery_op(hobject_t::get_max());
     } else {
       m = new MOSDPGBackfill(MOSDPGBackfill::OP_BACKFILL_PROGRESS, e, e, info.pgid);