]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librgw: unify result cases in rgw_mkdir
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 10 Dec 2015 01:25:22 +0000 (20:25 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:06:24 +0000 (12:06 -0500)
commit4e9116ae527bf817093b72244614a8214dd1dc2e
treeb2e3742a993b784c605ebd787449034fc9197483
parent33539db73541cbd158a3cd1de3693e980d44ae21
librgw: unify result cases in rgw_mkdir

In both paths, instantiate a file handle iff the remote op
succeeded.

If this operation lost a race to create an object with the same
name, we cannot correctly return a valid result and handle in all
cases, so don't attempt it.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc