]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: reset timeout in _scan_list for each object, read chunk
authorSamuel Just <sam.just@inktank.com>
Thu, 23 May 2013 22:24:39 +0000 (15:24 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 24 May 2013 02:42:32 +0000 (19:42 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index a419c68de17b6207362978269c84e73ffcb8ea00..6e8079dae5a022db89ed8a663211ab4d687e187b 100644 (file)
@@ -3258,6 +3258,7 @@ void PG::_scan_list(
   for (vector<hobject_t>::iterator p = ls.begin(); 
        p != ls.end(); 
        ++p, i++) {
+    handle.reset_tp_timeout();
     hobject_t poid = *p;
 
     struct stat st;
@@ -3277,6 +3278,7 @@ void PG::_scan_list(
         while ( (r = osd->store->read(coll, poid, pos,
                                       g_conf->osd_deep_scrub_stride, bl,
                                      true)) > 0) {
+         handle.reset_tp_timeout();
           h << bl;
           pos += bl.length();
           bl.clear();