From 472f4dd74d01e3c4177cd962052f95f972220853 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 17 Jun 2010 14:01:26 +0200 Subject: [PATCH] tweak ua_prune --- bacula/src/dird/ua_prune.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) { -- 2.39.5