From 406ff0b71128c4fff99104ddac273efc82113dae Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Tue, 11 Mar 2014 18:11:38 +0200 Subject: [PATCH] OSDMap: clarify is_{down,in}() definitions Make it clear that is_down() == !is_up() and is_in() == !is_out(). This is not a functional change. Signed-off-by: Ilya Dryomov --- src/osd/OSDMap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h index 44da1b0e2b9a..2110bc5a7553 100644 --- a/src/osd/OSDMap.h +++ b/src/osd/OSDMap.h @@ -370,7 +370,7 @@ public: } bool is_down(int osd) const { - return !exists(osd) || !is_up(osd); + return !is_up(osd); } bool is_out(int osd) const { @@ -378,7 +378,7 @@ public: } bool is_in(int osd) const { - return exists(osd) && !is_out(osd); + return !is_out(osd); } /** -- 2.47.3