From: Kern Sibbald Date: Mon, 7 Dec 2009 08:32:12 +0000 (+0100) Subject: Add more sm_check debug X-Git-Tag: Release-7.0.0~2497 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b848d9de66598f3dae51972c60bac905bf75bf36;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; }