diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 968356dfb7f..a7b727472d7 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3361,16 +3361,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