From 1934bf29460ad1b16a086bb29613e321e0542a03 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 7 Dec 2009 09:32:12 +0100 Subject: [PATCH] Add more sm_check debug --- bacula/src/dird/ua_prune.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.5