disconnected-rmdir-infinite-recursion-20081012

LICENSE IPL10
FIXES 121226

fix infinite recursion when replaying rmdir transaction
This commit is contained in:
Dragos Tatulea 2008-10-12 19:10:05 +00:00 committed by Derrick Brashear
parent 7c6fac305c
commit 0195d7c082

View File

@ -435,8 +435,7 @@ afs_rmdir(OSI_VC_DECL(adp), char *aname, struct AFS_UCRED *acred)
ObtainSharedLock(&tdc->lock, 732);
}
if (!tvc->ddirty_flags ||
(tvc->ddirty_flags == VDisconShadowed)) {
if (!tvc->ddirty_flags) {
/* Put it in the list only if it's fresh or has only been shadowed. */
ObtainWriteLock(&afs_DDirtyVCListLock, 728);
AFS_DISCON_ADD_DIRTY(tvc);