]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os: fix unhandled error other than ENOENT
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 5 Jan 2016 08:02:02 +0000 (16:02 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 5 Jan 2016 08:33:08 +0000 (16:33 +0800)
Fixes: #14228
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/memstore/MemStore.cc

index a24b4fceb14b2a2a9953e4dbd0e2d8a32779bc26..0733dcc987b6beaa628771b1c61a08aa9c2af892 100644 (file)
@@ -198,7 +198,9 @@ int MemStore::mkfs()
     if (r < 0)
       return r;
     dout(1) << __func__ << " new fsid " << fsid_str << dendl;
-  } else {
+  } else if (r < 0) {
+    return r;
+  } else {  
     dout(1) << __func__ << " had fsid " << fsid_str << dendl;
   }