]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: avoid implicit return type cast
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 8 Mar 2016 04:15:55 +0000 (12:15 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Mar 2016 11:05:40 +0000 (19:05 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PG.h

index 87b0d996028d6d4b7fea62e662b9c8f50e79146e..1b8b53333c2a990aac41ea40d052c1d0630a97d2 100644 (file)
@@ -1087,7 +1087,7 @@ public:
   void proc_primary_info(ObjectStore::Transaction &t, const pg_info_t &info);
 
   bool have_unfound() const { 
-    return missing_loc.num_unfound();
+    return missing_loc.num_unfound() > 0;
   }
   int get_num_unfound() const {
     return missing_loc.num_unfound();