From: songbaisen Date: Thu, 24 Nov 2016 08:35:44 +0000 (+0800) Subject: mon: small change on the HealthMonitor start_epoch function X-Git-Tag: v11.1.0~160^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10296%2Fhead;p=ceph.git mon: small change on the HealthMonitor start_epoch function No need to call start_epoch function each time in the loop. Signed-off-by: songbaisen --- diff --git a/src/mon/HealthMonitor.cc b/src/mon/HealthMonitor.cc index 6e8e01e622bd..0887bdc1b759 100644 --- a/src/mon/HealthMonitor.cc +++ b/src/mon/HealthMonitor.cc @@ -66,9 +66,10 @@ bool HealthMonitor::service_dispatch(MonOpRequestRef op) } void HealthMonitor::start_epoch() { + epoch_t epoch = get_epoch(); for (map::iterator it = services.begin(); it != services.end(); ++it) { - it->second->start(get_epoch()); + it->second->start(epoch); } }