]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: combine conditional statement 16391/head
authorYan Jun <yan.jun8@zte.com.cn>
Tue, 18 Jul 2017 06:24:18 +0000 (14:24 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Tue, 18 Jul 2017 06:24:18 +0000 (14:24 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/osd/OSD.cc

index 5b979c8c9f48307385f486962b9923f65d87b95e..778edab3e7c7459f3bd9475d0826475b33fb46e6 100644 (file)
@@ -2280,10 +2280,10 @@ int OSD::enable_disable_fuse(bool stop)
     delete fuse_store;
     fuse_store = NULL;
     r = ::rmdir(mntpath.c_str());
-    if (r < 0)
-      r = -errno;
     if (r < 0) {
-      derr << __func__ << " failed to rmdir " << mntpath << dendl;
+      r = -errno;
+      derr << __func__ << " failed to rmdir " << mntpath << ": "
+           << cpp_strerror(r) << dendl;
       return r;
     }
     return 0;