]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: Fix rename returning ENOENT for dest
authorSam Lang <sam.lang@inktank.com>
Fri, 22 Mar 2013 20:02:58 +0000 (15:02 -0500)
committerSage Weil <sage@inktank.com>
Sat, 23 Mar 2013 18:01:50 +0000 (11:01 -0700)
commit8e6a970c45d7c70f746cc09d7699c9654d5e7862
tree8b3f6dedf66673d3ba6d47b38b6369cef07f442c
parent838f1cde94f7243274a9fbd0742e7eed0c0fa4b1
client: Fix rename returning ENOENT for dest

Introduced by fc80c1dc6ee315ae5e039986602ffadba46cb43b,
the client should _not_ fail if the lookup for the
destination path on rename returns ENOENT.

The previous code also did not check that the lookup
returned ENOENT or success.  We add the check and fail
if we get any other errors.

Fixes #4517.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/client/Client.cc