]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_prune.c
update configure
[bacula/bacula] / bacula / src / dird / ua_prune.c
index ef5131d5ddd6969fc17ea5b6f00bd602c0dc402f..a993edba6dde0cd73fcf7bb200878794ca49c561 100644 (file)
@@ -298,7 +298,7 @@ int prune_files(UAContext *ua, CLIENT *client, POOL *pool)
 
 //   edit_utime(now-period, ed1, sizeof(ed1));
 //   Jmsg(ua->jcr, M_INFO, 0, _("Begin pruning Jobs older than %s secs.\n"), ed1);
-   Jmsg(ua->jcr, M_INFO, 0, _("Begin pruning Jobs.\n"));
+   Jmsg(ua->jcr, M_INFO, 0, _("Begin pruning Files.\n"));
    /* Select Jobs -- for counting */ 
    Mmsg(query, 
         "SELECT COUNT(1) FROM Job %s WHERE PurgedFiles=0 %s", 
@@ -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