From: xie xingguo Date: Thu, 25 Feb 2016 06:57:15 +0000 (+0000) Subject: os/filestore: fix result code overwritten for snapshot() X-Git-Tag: v10.1.0~41^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ccb395dd848d34a952440058ace650b5a6f1f6df;p=ceph.git os/filestore: fix result code overwritten for snapshot() 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 --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 99f15967681..110c721f169 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -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; }