summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1999-01-07 02:52:50 +0000
committerJeremy Allison <jra@samba.org>1999-01-07 02:52:50 +0000
commitde3999f8e79c7e137dea7e070d599a57bde38f82 (patch)
treeee21d7e2b22ce8b88bb0d07924b75c0a6796c300
parentf85f08419cd267f6d20c3ea6d072ddef49ca82c0 (diff)
downloadsamba-de3999f8e79c7e137dea7e070d599a57bde38f82.tar.gz
samba-de3999f8e79c7e137dea7e070d599a57bde38f82.tar.xz
samba-de3999f8e79c7e137dea7e070d599a57bde38f82.zip
Remember to return after idling the oldest dirptr so we don't idle all
of them. Jeremy.
-rw-r--r--source/smbd/dir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/dir.c b/source/smbd/dir.c
index 8eea7c76962..30e4c67cd1d 100644
--- a/source/smbd/dir.c
+++ b/source/smbd/dir.c
@@ -102,8 +102,10 @@ static void dptr_idleoldest(void)
*/
for(; dptr; dptr = dptr->prev) {
- if (dptr->ptr)
+ if (dptr->ptr) {
dptr_idle(dptr);
+ return;
+ }
}
}