]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: kill get_any_up_osd(), which is never used
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 20 Apr 2016 06:28:21 +0000 (14:28 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 20 Apr 2016 06:28:21 +0000 (14:28 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSDMap.h

index affd4c3c1b869ebcf9a1e2c885bae0315bd1c2ef..487baca665328965381cb982887d04d1a051c492 100644 (file)
@@ -532,13 +532,6 @@ public:
     return osd_xinfo[osd];
   }
   
-  int get_any_up_osd() const {
-    for (int i=0; i<max_osd; i++)
-      if (is_up(i))
-       return i;
-    return -1;
-  }
-
   int get_next_up_osd_after(int n) const {
     for (int i = n + 1; i != n; ++i) {
       if (i >= get_max_osd())