From: xie xingguo Date: Sat, 12 Mar 2016 07:41:31 +0000 (+0800) Subject: osd: initialize last_recalibrate field at construction X-Git-Tag: v10.1.0~100^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=12d151f4beb249182e775f0211734d370ce69f9e;p=ceph.git osd: initialize last_recalibrate field at construction So we don't get an overflowed duration on the first entry of promote_throttle_recalibrate() call. Signed-off-by: xie xingguo --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 874dd38c1737..5994b01c73b7 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -236,6 +236,7 @@ OSDService::OSDService(OSD *osd) : agent_timer_lock("OSD::agent_timer_lock"), agent_timer(osd->client_messenger->cct, agent_timer_lock), promote_probability_millis(1000), + last_recalibrate(ceph_clock_now(NULL)), promote_max_objects(0), promote_max_bytes(0), objecter(new Objecter(osd->client_messenger->cct, osd->objecter_messenger, osd->monc, NULL, 0, 0)),