summaryrefslogtreecommitdiff
path: root/include/my_alarm.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-09-01 11:47:06 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2015-09-06 22:26:33 +0200
commit0ce0b88080fd39f6841206b64d8723af9779e849 (patch)
tree3b0f4ab28e0f7f64d198a7c8179166ccda7bb102 /include/my_alarm.h
parent9abf426ee7f1ca2bab2683387137d3da0f18bc0e (diff)
downloadmariadb-git-0ce0b88080fd39f6841206b64d8723af9779e849.tar.gz
MDEV-8450: PATCH] Wrong macro expansion in Query_cache::send_result_to_client()
Expression in macro protected by ()
Diffstat (limited to 'include/my_alarm.h')
-rw-r--r--include/my_alarm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_alarm.h b/include/my_alarm.h
index c3707cba395..73bb6ab76cc 100644
--- a/include/my_alarm.h
+++ b/include/my_alarm.h
@@ -50,7 +50,7 @@ extern ulong my_time_to_wait_for_lock;
#define ALARM_INIT
#define ALARM_END
#define ALARM_TEST (alarm_pos++ >= alarm_end_pos)
-#define ALARM_REINIT alarm_end_pos+=MY_HOW_OFTEN_TO_WRITE
+#define ALARM_REINIT (alarm_end_pos+=MY_HOW_OFTEN_TO_WRITE)
#endif /* HAVE_ALARM */
#ifdef __cplusplus