From 2496eef79a334826ada812bd1fe576671e8cdcad Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Tue, 10 May 2016 20:12:23 +0100 Subject: [PATCH] osd/OSD.cc: make pistate a local struct It is only used within build_past_intervals_parallel, so it can be moved inside it. Signed-off-by: Michal Jarzabek --- src/osd/OSD.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 13114349baf..2f6fa6afa13 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3344,16 +3344,15 @@ void OSD::load_pgs() * follow the same logic, but do all pgs at the same time so that we * can make a single pass across the osdmap history. */ -struct pistate { - epoch_t start, end; - vector old_acting, old_up; - epoch_t same_interval_since; - int primary; - int up_primary; -}; - void OSD::build_past_intervals_parallel() { + struct pistate { + epoch_t start, end; + vector old_acting, old_up; + epoch_t same_interval_since; + int primary; + int up_primary; + }; map pis; // calculate junction of map range