mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
PG: reset timeout in _scan_list for each object, read chunk
Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
b8a25e08a6
commit
d62716dd4c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user