]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/filestore: fix wrong scope of result code for error cases during mkfs 7704/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 19 Feb 2016 06:25:54 +0000 (14:25 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 19 Feb 2016 06:45:20 +0000 (14:45 +0800)
commit68f300dda47936e825f00237ed5263be5961cc60
tree25df0271e3d41a3018e3c566dd18b10bf21855df
parent398c493fa92c2d8a3879e74627b1d7f45b3f10d9
os/filestore: fix wrong scope of result code for error cases during mkfs

During the mkfs process, if we fail to read and sometimes rewrite the
op_seq, the mkfs process is abnormally terminated but we may
still return a positive answer to the caller, which is misleading.

This patch is provided to solve the above problems by correctly setting
'ret' correspondingly under these cases, which is the final answer to
be passed out for caller.

Fixes: #14814
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/filestore/FileStore.cc