]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: don't set other if lookup fails in rename
authorSam Lang <sam.lang@inktank.com>
Sat, 23 Mar 2013 19:07:59 +0000 (14:07 -0500)
committerSage Weil <sage@inktank.com>
Sun, 24 Mar 2013 00:30:53 +0000 (17:30 -0700)
commitece4348807190870be5e484f5edbd1adfc6c1f5b
tree10e6d4db246a31abc7b26f841b9f777ffcc792ce
parent8e6a970c45d7c70f746cc09d7699c9654d5e7862
client: don't set other if lookup fails in rename

On rename, only set the other inode if the
lookup for the destination succeeds, otherwise we hit
a segv in set_other_inode().

Fixes #4517.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
Tested-by: Noah Watkins <jayhawk@cs.ucsc.edu>
src/client/Client.cc