]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: optimize rename operation under different quota root 28077/head
authorZhi Zhang <willzzhang@tencent.com>
Wed, 9 Oct 2019 03:37:20 +0000 (11:37 +0800)
committerZhi Zhang <willzzhang@tencent.com>
Wed, 9 Oct 2019 03:37:20 +0000 (11:37 +0800)
commitb8954e5734b3c53f90c47fbdbbbdb8a23747ef07
tree33d11df6fa83125ebedbef5fa68e34bcf1a31efa
parent9068510305a8a4c986cb609caa15341b2b769bfc
client: optimize rename operation under different quota root

It took very long time to move a large directory to another
directory under different quota root, because rename operation
was switched to copy and unlink operations, even if the destination
directory didn't enable quota or had enough room for source
directory.

Fixes: http://tracker.ceph.com/issues/39715
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
src/client/Client.cc