]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
PG::_scan_list: assert if error is neither -EIO nor -ENOENT 181/head
authorSamuel Just <sam.just@inktank.com>
Mon, 1 Apr 2013 23:20:13 +0000 (16:20 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 1 Apr 2013 23:27:34 +0000 (16:27 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index 6ad0769518f5c61e71b22b42f768f0922987acc7..90cfb5dff2d135bc36d3e8e254b2c66b9145ed17 100644 (file)
@@ -3208,6 +3208,9 @@ void PG::_scan_list(ScrubMap &map, vector<hobject_t> &ls, bool deep)
       dout(25) << "_scan_list  " << poid << " got " << r << ", read_error" << dendl;
       ScrubMap::object &o = map.objects[poid];
       o.read_error = true;
+    } else {
+      derr << "_scan_list got: " << cpp_strerror(r) << dendl;
+      assert(0);
     }
   }
 }