From: Kern Sibbald Date: Sun, 13 Apr 2008 19:19:58 +0000 (+0000) Subject: Reduce thrashing when purged volume is being used X-Git-Tag: Release-3.0.0~1555 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=493640d8f1e5c724ef9be275661b8cc2df51e9c7;p=bacula%2Fbacula 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 --- 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);