Actions
Bug #15890
closedosd:sched_time not actually randomized
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Description
@OSDService::ScrubJob::ScrubJob(const spg_t& pg, const utime_t& timestamp,
double pool_scrub_min_interval,
double pool_scrub_max_interval, bool must)
: pgid(pg),
sched_time(timestamp),
deadline(timestamp)
{
// if not explicitly requested, postpone the scrub with a random delay
if (!must) {
double scrub_min_interval = pool_scrub_min_interval > 0 ?
pool_scrub_min_interval : g_conf->osd_scrub_min_interval;
double scrub_max_interval = pool_scrub_max_interval > 0 ?
pool_scrub_max_interval : g_conf->osd_scrub_max_interval;
sched_time += scrub_min_interval;
double r = rand() / RAND_MAX;@
r will always be 0.
Updated by xie xingguo almost 8 years ago
Master PR:
https://github.com/ceph/ceph/pull/9126
Updated by Kefu Chai almost 8 years ago
- Status changed from New to Fix Under Review
Updated by Yuri Weinstein almost 8 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Loïc Dachary almost 8 years ago
- Copied to Backport #16080: jewel: osd:sched_time not actually randomized added
Updated by Loïc Dachary almost 8 years ago
- Status changed from Pending Backport to Resolved
Actions