From 61e01f067446a43a1cf482b9764dbb80b5a08380 Mon Sep 17 00:00:00 2001 From: songbaisen Date: Thu, 24 Nov 2016 16:35:44 +0800 Subject: [PATCH] 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 --- src/mon/HealthMonitor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mon/HealthMonitor.cc b/src/mon/HealthMonitor.cc index 6e8e01e622b..0887bdc1b75 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); } } -- 2.39.5