]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
BtrfsFileStoreBackend.cc: fix ::unlinkat() result handling 1800/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 12 May 2014 00:33:44 +0000 (02:33 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 12 May 2014 00:33:44 +0000 (02:33 +0200)
commit3d7f527cbd974d8f5e5837c4a1f24c7bacc46cac
treeed462d7d49a48f2f157b1561e2c118bf4211c785
parent5f89128f6010571b3dece6e7f4af086200f8452d
BtrfsFileStoreBackend.cc: fix ::unlinkat() result handling

Don't check for 'fd' but for the return value of the ::unlinkat() call.

Fix for:
[src/os/BtrfsFileStoreBackend.cc:72] -> [src/os/BtrfsFileStoreBackend.cc:74]:
 (warning) Opposite conditions in nested 'if' blocks lead to a dead code block.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/BtrfsFileStoreBackend.cc