summaryrefslogtreecommitdiff
path: root/include/config-win.h
diff options
context:
space:
mode:
authorunknown <malff/marcsql@weblab.(none)>2007-05-22 13:41:40 -0600
committerunknown <malff/marcsql@weblab.(none)>2007-05-22 13:41:40 -0600
commitbb64e39e0aa6d209a47dea7ed48753752ec003f2 (patch)
treebadf21b3b71dbf91fcaa36ca1a822ca4dc07dcc6 /include/config-win.h
parent3d01594f349a540068943b1ba7ddea2ec2e448ef (diff)
downloadmariadb-git-bb64e39e0aa6d209a47dea7ed48753752ec003f2.tar.gz
Bug#21554 (sp_cache.cc: violates C++ aliasing rules)
The problem reported is a compile bug, reported by the development GCC team with GCC 4.2. The original issue can no longer be reproduced in MySQL 5.1, since the configure script no longer define HAVE_ATOMIC_ADD, which caused the Linux atomic functions to be used (and cause a problem with an invalid cast). This patch implements some code cleanup for 5.1 only, which was identified during the investigation of this issue. With this patch, statistics maintained in THD::status_var are by definition owned by the running thread, and do not need to be protected against race conditions. These statistics are maintained by the status_var_* helpers, which do not require any lock. include/my_global.h: General cleanup of thread_safe_increment / statistic_increment include/my_pthread.h: General cleanup of thread_safe_increment / statistic_increment sql/filesort.cc: General cleanup of thread_safe_increment / statistic_increment sql/handler.cc: General cleanup of thread_safe_increment / statistic_increment sql/sql_insert.cc: General cleanup of thread_safe_increment / statistic_increment sql/sql_parse.cc: General cleanup of thread_safe_increment / statistic_increment sql/sql_prepare.cc: General cleanup of thread_safe_increment / statistic_increment sql/sql_select.cc: General cleanup of thread_safe_increment / statistic_increment
Diffstat (limited to 'include/config-win.h')
0 files changed, 0 insertions, 0 deletions