]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: avoid blindly removing dentries
authorSage Weil <sage@inktank.com>
Fri, 17 May 2013 19:12:15 +0000 (12:12 -0700)
committerYan, Zheng <zheng.z.yan@intel.com>
Wed, 7 May 2014 02:06:52 +0000 (10:06 +0800)
commit334c43f54d31131c4970f43d7e43ebb43e6cd22d
treeb70a4e92acfc8976f399445a2f379034129d758d
parent25d2469f03ab6f846f1f5462cd4a9450b8b29b86
client: avoid blindly removing dentries

MetaRequests may have references to these dentries.  Instead of removing
them and tearing down the directory, just unlink them from the inodes.

We could be a bit smarter here if we looked at the reference count, but
this works too.

Signed-off-by: Sage Weil <sage@inktank.com>
src/client/Client.cc