]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: cleanup: add parens
authorSage Weil <sage@newdream.net>
Tue, 9 Nov 2010 17:56:05 +0000 (09:56 -0800)
committerSage Weil <sage@newdream.net>
Tue, 9 Nov 2010 18:03:21 +0000 (10:03 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSDMap.h

index a2c4479429a57af0deca13fe5b9a09122d01a7f9..5d3f3493d112398eac6da8c9f4ad0c05d07cb744 100644 (file)
@@ -421,7 +421,7 @@ private:
   }
 
   bool is_up(int osd) const {
-    return exists(osd) && osd_state[osd] & CEPH_OSD_UP;
+    return exists(osd) && (osd_state[osd] & CEPH_OSD_UP);
   }
 
   bool is_down(int osd) const {