backup-addvolentry-fix-20010221
authorMattias Amnefelt <mattiasa@e.kth.se>
Thu, 22 Feb 2001 03:06:04 +0000 (03:06 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 22 Feb 2001 03:06:04 +0000 (03:06 +0000)
src/bucoord/vol_sets.c

index b83ad7e..0d4fadd 100644 (file)
@@ -66,6 +66,12 @@ bc_AddVolEntryCmd(as, arock)
     partitionName = as->parms[2].items->data;
     volRegExp     = as->parms[3].items->data;
 
+    code = bc_UpdateVolumeSet();
+    if (code) {
+       com_err(whoami, code, "; Can't retrieve volume sets");
+       return(code);
+    }
+
     ctPtr = &bc_globalConfig->configText[TB_VOLUMESET];
 
     tset = bc_FindVolumeSet(bc_globalConfig, volSetName);