From: Eric Bollengier Date: Mon, 2 Aug 2010 19:36:42 +0000 (+0200) Subject: Fix prune sql handler X-Git-Tag: Release-7.0.0~1637 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d1b535c8948f2930ac4373d450975223334458f3;p=bacula%2Fbacula Fix prune sql handler --- 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));