From: Eric Bollengier Date: Thu, 17 Jun 2010 12:01:26 +0000 (+0200) Subject: tweak ua_prune X-Git-Tag: Release-5.0.3~134 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c438cb6468cdfb7fc7288722295832eaaab8745a;p=bacula%2Fbacula tweak ua_prune --- diff --git a/bacula/src/dird/ua_prune.c b/bacula/src/dird/ua_prune.c index af57a3354f..3113057c2e 100644 --- a/bacula/src/dird/ua_prune.c +++ b/bacula/src/dird/ua_prune.c @@ -348,15 +348,12 @@ struct accurate_check_ctx { DBId_t FileSetId; /* Id of FileSet */ }; -/* row: Job.Name, FileSet, Client.Name, FileSetId, ClientId */ +/* row: Job.Name, FileSet, Client.Name, FileSetId, ClientId, Type */ static int job_select_handler(void *ctx, int num_fields, char **row) { alist *lst = (alist *)ctx; struct accurate_check_ctx *res; - - if (num_fields != 6) { - return 1; - } + ASSERT(num_fields == 6); /* If this job doesn't exist anymore in the configuration, delete it */ if (GetResWithName(R_JOB, row[0]) == NULL) {