From 2d716209e62464e526205f6739779f536314f566 Mon Sep 17 00:00:00 2001 From: Konstantin Osipov Date: Wed, 22 Jul 2009 13:44:19 +0400 Subject: [PATCH] Add a comment for thd->proc_info. --- sql/sql_class.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/sql_class.h b/sql/sql_class.h index 36e696f2da6..a758d24131b 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1335,6 +1335,10 @@ public: Set it using the thd_proc_info(THD *thread, const char *message) macro/function. + + This member is accessed and assigned without any synchronization. + Therefore, it may point only to constant (statically + allocated) strings, which memory won't go away over time. */ const char *proc_info;