From 012216cf1291549b00723edf4ddd60ed20c2e84c Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 13 Apr 2008 19:19:58 +0000 Subject: [PATCH] Reduce thrashing when purged volume is being used git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6810 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/askdir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/stored/askdir.c b/bacula/src/stored/askdir.c index dcaa00b8d8..2bf8e43b8e 100644 --- a/bacula/src/stored/askdir.c +++ b/bacula/src/stored/askdir.c @@ -258,14 +258,14 @@ bool dir_find_next_appendable_volume(DCR *dcr) dcr->is_reserved(), dcr->VolumeName); /* - * Try the forty oldest or most available volumes. Note, + * Try the twenty oldest or most available volumes. Note, * the most available could already be mounted on another * drive, so we continue looking for a not in use Volume. */ lock_volumes(); P(vol_info_mutex); dcr->clear_found_in_use(); - for (int vol_index=1; vol_index < 40; vol_index++) { + for (int vol_index=1; vol_index < 20; vol_index++) { bash_spaces(dcr->media_type); bash_spaces(dcr->pool_name); dir->fsend(Find_media, jcr->Job, vol_index, dcr->pool_name, dcr->media_type); -- 2.39.5