]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSD.cc: make pistate a local struct 9056/head
authorMichal Jarzabek <stiopa@gmail.com>
Tue, 10 May 2016 19:12:23 +0000 (20:12 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Tue, 10 May 2016 19:12:23 +0000 (20:12 +0100)
It is only used within build_past_intervals_parallel, so it can be
moved inside it.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/osd/OSD.cc

index 13114349baf7a5123098069807862004cd2ced4b..2f6fa6afa137d79c3c2e02efc798ccd8591d01f7 100644 (file)
@@ -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<int> 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<int> old_acting, old_up;
+    epoch_t same_interval_since;
+    int primary;
+    int up_primary;
+  };
   map<PG*,pistate> pis;
 
   // calculate junction of map range