]> git.sur5r.net Git - bacula/bacula/commitdiff
Reduce thrashing when purged volume is being used
authorKern Sibbald <kern@sibbald.com>
Sun, 13 Apr 2008 19:19:58 +0000 (19:19 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 13 Apr 2008 19:19:58 +0000 (19:19 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6810 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/askdir.c

index dcaa00b8d8b1bc2325caf5eee2839ddce9fd4dd6..2bf8e43b8e2b92a99f0868e5202ed48afdc281f3 100644 (file)
@@ -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);