]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: move the detection of destination image ealier in rename op 4113/head
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Fri, 20 Mar 2015 08:26:29 +0000 (16:26 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Mon, 23 Mar 2015 03:26:36 +0000 (11:26 +0800)
commit27120d703051371068e7e1bcdcb49c52d78d6789
tree15f6c3d787537a071c72796a818c5a596212f3be
parentada7ec860cb7901c560c12a5af36dc7c23051b76
rbd: move the detection of destination image ealier in rename op

Return earlier to avoid extra work of reading image data and omap if the
detection fails or the destination image already exists.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/librbd/internal.cc