]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/filestore: fix result code overwritten for snapshot()
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 25 Feb 2016 06:57:15 +0000 (06:57 +0000)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Mar 2016 13:56:55 +0000 (21:56 +0800)
The create_checkpoint() is not a standard system-call, it may return
some customized error code, thus no conversion is needed here.

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

index 99f15967681c19a8b7db67d575c6c6b285e5180d..110c721f16939ab479fcb8e44becedf07200f4a8 100644 (file)
@@ -3907,7 +3907,6 @@ int FileStore::snapshot(const string& name)
 
   int r = backend->create_checkpoint(s, NULL);
   if (r) {
-    r = -errno;
     derr << "snapshot " << name << " failed: " << cpp_strerror(r) << dendl;
   }