diff options
author | unknown <sasha@mysql.sashanet.com> | 2002-01-31 11:02:11 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2002-01-31 11:02:11 -0700 |
commit | 1d76e90c1b61981e284bd583e54345cce9fe3551 (patch) | |
tree | e9757e623a6a58c1cd6e97de7906ec6674e23046 /include/my_global.h | |
parent | 6987f146cda13f6b817e4fca105c51beca9d4c9c (diff) | |
download | mariadb-git-1d76e90c1b61981e284bd583e54345cce9fe3551.tar.gz |
temporary commit to pull Monty's changes
include/my_global.h:
added dbug_volatile
mysys/mf_iocache2.c:
some debugging code to investigate failed assert in my_b_append_tell()
sql/item_func.cc:
fixed logging bug in DO RELEASE_LOCK()
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h index a5fe99d5271..6a7385e18a2 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -51,6 +51,16 @@ #endif #endif /* _WIN32... */ +/* sometimes we want to make sure that the variable is not put into + a register in debugging mode so we can see its value in the core +*/ + +#ifndef DBUG_OFF +#define dbug_volatile volatile +#else +#define dbug_volatile +#endif + /* The macros below are borrowed from include/linux/compiler.h in the Linux kernel. Use them to indicate the likelyhood of the truthfulness |