From d1b535c8948f2930ac4373d450975223334458f3 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 2 Aug 2010 21:36:42 +0200 Subject: [PATCH] Fix prune sql handler --- bacula/src/dird/ua_prune.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bacula/src/dird/ua_prune.c b/bacula/src/dird/ua_prune.c index c3883828c3..edef66ded0 100644 --- a/bacula/src/dird/ua_prune.c +++ b/bacula/src/dird/ua_prune.c @@ -357,22 +357,22 @@ static int job_select_handler(void *ctx, int num_fields, char **row) /* If this job doesn't exist anymore in the configuration, delete it */ if (GetResWithName(R_JOB, row[0]) == NULL) { - return 1; + return 0; } /* If this fileset doesn't exist anymore in the configuration, delete it */ if (GetResWithName(R_FILESET, row[1]) == NULL) { - return 1; + return 0; } /* If this client doesn't exist anymore in the configuration, delete it */ if (GetResWithName(R_CLIENT, row[2]) == NULL) { - return 1; + return 0; } /* Don't compute accurate things for Verify jobs */ if (*row[5] == 'V') { - return 1; + return 0; } res = (struct accurate_check_ctx*) malloc(sizeof(struct accurate_check_ctx)); -- 2.39.5