From: Kern Sibbald Date: Mon, 7 Dec 2009 08:32:12 +0000 (+0100) Subject: Add more sm_check debug X-Git-Tag: Release-5.0.0~180 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1934bf29460ad1b16a086bb29613e321e0542a03;p=bacula%2Fbacula Add more sm_check debug --- diff --git a/bacula/src/dird/ua_prune.c b/bacula/src/dird/ua_prune.c index 336089b9a7..8155d4f8a1 100644 --- a/bacula/src/dird/ua_prune.c +++ b/bacula/src/dird/ua_prune.c @@ -96,6 +96,8 @@ int file_delete_handler(void *ctx, int num_fields, char **row) del->max_ids); } del->JobId[del->num_ids++] = (JobId_t)str_to_int64(row[0]); + /* **FIXME*** remove in production */ + sm_check(__FILE__, __LINE__, true); // Dmsg2(150, "row=%d val=%d\n", del->num_ids-1, del->JobId[del->num_ids-1]); return 0; } @@ -305,8 +307,12 @@ int prune_files(UAContext *ua, CLIENT *client, POOL *pool) bail_out: db_unlock(ua->db); + /* ***FIXME*** remove this for production */ + sm_check(__FILE__, __LINE__, true); if (del.JobId) { free(del.JobId); + /* ***FIXME*** remove this for production */ + sm_check(__FILE__, __LINE__, true); } return 1; }