]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: don't compare auth with itself
authorSamuel Just <sam.just@inktank.com>
Fri, 29 Mar 2013 23:30:14 +0000 (16:30 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 1 Apr 2013 16:38:12 +0000 (09:38 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index 4c24b6a970981f6f680db6c4f90295e9250c0cfb..a66bb3a75e9553450fdeca21923b3c886e6ed919 100644 (file)
@@ -4337,6 +4337,8 @@ void PG::_compare_scrubmaps(const map<int,ScrubMap*> &maps,
     set<int> cur_missing;
     set<int> cur_inconsistent;
     for (j = maps.begin(); j != maps.end(); ++j) {
+      if (j == auth)
+       continue;
       if (j->second->objects.count(*k)) {
        // Compare
        stringstream ss;