DEVEL15-discon-remove-fix-20090128

LICENSE IPL10

fix my own error


(cherry picked from commit df139845e9f83cd15f3b0ab8dcbb27781c811642)
This commit is contained in:
Derrick Brashear 2009-01-28 22:39:13 +00:00
parent 2ed1c68c04
commit aa7be50728

View File

@ -446,12 +446,14 @@ afs_remove(OSI_VC_DECL(adp), char *aname, struct AFS_UCRED *acred)
}
tvc->uncred = acred;
tvc->f.states |= CUnlinked;
#if defined(AFS_DISCON_ENV)
/* if rename succeeded, remove should not */
ObtainWriteLock(&tvc->lock, 715);
if (tvc->f.ddirty_flags & VDisconRemove) {
tvc->f.ddirty_flags &= ~VDisconRemove;
}
ReleaseWriteLock(&tvc->lock);
#endif
} else {
osi_FreeSmallSpace(unlname);
}