]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
BlueStore: fix result code overwritten
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 6 Jan 2016 08:43:26 +0000 (16:43 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Jan 2016 06:30:03 +0000 (14:30 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 34682acd35e4f9307f47a10836b1943a5e4ced2c..f7a04319cbb92d25283787727fc26306240abc74 100644 (file)
@@ -2203,6 +2203,10 @@ int BlueStore::fsck()
  out_path:
   _close_path();
 
+  // fatal errors take precedence
+  if (r < 0)
+    return r;
+
   dout(1) << __func__ << " finish with " << errors << " errors" << dendl;
   return errors;
 }