]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_prune.c
update configure
[bacula/bacula] / bacula / src / dird / ua_prune.c
index af64c389cff11486f36a96c558e6f12eba0f96af..a993edba6dde0cd73fcf7bb200878794ca49c561 100644 (file)
@@ -359,7 +359,7 @@ static void drop_temp_tables(UAContext *ua)
 static bool create_temp_tables(UAContext *ua)
 {
    /* Create temp tables and indicies */
-   if (!db_sql_query(ua->db, create_deltabs[db_type], NULL, (void *)NULL)) {
+   if (!db_sql_query(ua->db, create_deltabs[db_get_type_index(ua->db)], NULL, (void *)NULL)) {
       ua->error_msg("%s", db_strerror(ua->db));
       Dmsg0(050, "create DelTables table failed\n");
       return false;
@@ -539,7 +539,7 @@ int prune_jobs(UAContext *ua, CLIENT *client, POOL *pool, int JobType)
       jr.ClientId = elt->ClientId;   /* should be always the same */
       jr.FileSetId = elt->FileSetId;
       db_accurate_get_jobids(ua->jcr, ua->db, &jr, &tempids);
-      jobids.cat(tempids);
+      jobids.add(tempids);
    }
 
    /* Discard latest Verify level=InitCatalog job