]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
libcephfs: fix for #4068
authorJoe Buck <jbbuck@gmail.com>
Sun, 10 Feb 2013 02:48:57 +0000 (18:48 -0800)
committerJoe Buck <jbbuck@gmail.com>
Mon, 11 Feb 2013 17:57:36 +0000 (09:57 -0800)
commit133295ed001a950e3296f4e88a916ab2405be0cc
tree82f563a7c510747d5d2247e1a4766669dd76a4bf
parenta39a48c1b18af21ad8b957f8e627ce70cbec4415
libcephfs: fix for #4068

If client->init() fails in mount, then client->shutdown()
should not be called. This patch uses a bool to ensure
that shutdown is only called if init() succeeds.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/libcephfs.cc