summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormonty@mysql.com/narttu.mysql.fi <>2006-08-10 22:41:19 +0300
committermonty@mysql.com/narttu.mysql.fi <>2006-08-10 22:41:19 +0300
commit7d0b042ec5437485e6db72ae846be1432fee524d (patch)
tree646dde4e78f50732e480c83d04296548ed4e1249 /include
parentf2ec5d7128f3b154d22f0acc2199c6a10c0e3173 (diff)
downloadmariadb-git-7d0b042ec5437485e6db72ae846be1432fee524d.tar.gz
Better bug fix for #14400 "Query joins wrong rows from table which is subject of "concurrent insert""
The previous bug fix didn't work when using partial keys. Don't use GNUC min/max operations are they are depricated. Fixed valgrind warning
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/my_global.h b/include/my_global.h
index aed4ee4fa01..37e53c65dec 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -348,10 +348,7 @@ int __void__;
#endif
/* Define some useful general macros */
-#if defined(__cplusplus) && defined(__GNUC__)
-#define max(a, b) ((a) >? (b))
-#define min(a, b) ((a) <? (b))
-#elif !defined(max)
+#if !defined(max)
#define max(a, b) ((a) > (b) ? (a) : (b))
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif