From: Kern Sibbald Date: Sat, 31 Mar 2007 11:30:51 +0000 (+0000) Subject: Rework debug flags a bit X-Git-Tag: Release-7.0.0~6654 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=10b864b6a197bd9ce8454c22aa1d466fa7b86aa4;p=bacula%2Fbacula Rework debug flags a bit git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4471 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/version.h b/bacula/src/version.h index a3763a80d3..2380732d61 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -43,17 +43,35 @@ #undef DEBUG #define DEBUG 1 #define TRACEBACK 1 -#define SMCHECK #define TRACE_FILE 1 /* If this is set stdout will not be closed on startup */ #define DEVELOPER 1 +/* + * SMCHECK does orphaned buffer checking (memory leaks) + * it can always be turned on, but has some minor performance + * penalties. + */ +#ifdef DEVELOPER +#define SMCHECK +#endif + +/* + * This should always be on. It enables data encryption code + * providing it is configured. + */ #define DATA_ENCRYPTION 1 +/* + * This uses a Bacula specific bsnprintf rather than the sys lib + * version because it is much more secure. It should always be + * on. + */ #define USE_BSNPRINTF 1 -/* Turn on the following flag to enable batch attribute inserts +/* + * Turn on the following flag to enable batch attribute inserts * in the catalog. This gives a large speedup. */ #define HAVE_BATCH_FILE_INSERT 1