]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix using proper StorageGroupPolicy defined in the Pool resource
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Fri, 28 May 2021 06:42:04 +0000 (08:42 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:02 +0000 (09:03 +0100)
bacula/src/dird/dird_conf.c

index abf87d77183e0476f50fca11deaa852829274a93..353897d10ab01df5b077e17df0f889d0658a405c 100644 (file)
@@ -759,7 +759,7 @@ static RES_ITEM pool_items[] = {
    {"MigrationLowBytes", store_size64,  ITEM(res_pool.MigrationLowBytes), 0, 0, 0},
    {"NextPool",      store_res,       ITEM(res_pool.NextPool), R_POOL, 0, 0},
    {"Storage",       store_alist_res, ITEM(res_pool.storage),  R_STORAGE, 0, 0},
-   {"StorageGroupPolicy",   store_storage_mngr, ITEM(res_job.storage_policy),  0, 0, 0},
+   {"StorageGroupPolicy",   store_storage_mngr, ITEM(res_pool.storage_policy),  0, 0, 0},
    {"AutoPrune",     store_bool,      ITEM(res_pool.AutoPrune), 0, ITEM_DEFAULT, true},
    {"Recycle",       store_bool,      ITEM(res_pool.Recycle),   0, ITEM_DEFAULT, true},
    {"RecyclePool",   store_res,       ITEM(res_pool.RecyclePool), R_POOL, 0, 0},