From: Sage Weil Date: Wed, 30 Jan 2013 07:52:28 +0000 (-0800) Subject: crush: fix get_rule_id() return value X-Git-Tag: v0.58~141^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7ada58a69baf224a8ccfae7b2fbe9d8f2ea9890;p=ceph.git crush: fix get_rule_id() return value There are 0 callers, yay! Signed-off-by: Sage Weil --- diff --git a/src/crush/CrushWrapper.h b/src/crush/CrushWrapper.h index 605874606f89..cc4036e52be8 100644 --- a/src/crush/CrushWrapper.h +++ b/src/crush/CrushWrapper.h @@ -229,7 +229,7 @@ public: build_rmaps(); if (rule_name_rmap.count(name)) return rule_name_rmap[name]; - return 0; /* hrm */ + return -ENOENT; } const char *get_rule_name(int t) const { std::map::const_iterator p = rule_name_map.find(t);