summaryrefslogtreecommitdiff
path: root/src/osd/OSDMap.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-05-12 14:18:27 -0700
committerSage Weil <sage@inktank.com>2012-05-12 14:18:27 -0700
commitbb74b8b3aa7ae2f0f3378c807e03e9d91e17a3b5 (patch)
tree2830ffae3dd1f4eb3ebded26cd5614ef5474ecf3 /src/osd/OSDMap.h
parent7ce157d60f3b113c6ed570040f88c0d482f29e0c (diff)
downloadceph-bb74b8b3aa7ae2f0f3378c807e03e9d91e17a3b5.tar.gz
osdmap: filter out nonexistent osds from map
It is possible that the crush map contains device ids that do not exist as osds. Filter them out of the CRUSH result. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/osd/OSDMap.h')
-rw-r--r--src/osd/OSDMap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h
index 18dbf457976..6db1bf4b0b9 100644
--- a/src/osd/OSDMap.h
+++ b/src/osd/OSDMap.h
@@ -405,6 +405,7 @@ public:
private:
/// pg -> (raw osd list)
int _pg_to_osds(const pg_pool_t& pool, pg_t pg, vector<int>& osds) const;
+ void _remove_nonexistent_osds(vector<int>& osds) const;
/// pg -> (up osd list)
void _raw_to_up_osds(pg_t pg, vector<int>& raw, vector<int>& up) const;