From 5054998f7f52273ced3d13cb9847fd5ec23ac1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 9 Oct 2019 04:02:30 +1100 Subject: [PATCH] hostgroup sign in stats_mysql_query_digest #2285 --- lib/Query_Processor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Query_Processor.cpp b/lib/Query_Processor.cpp index 257fcc449..b1fa4a7e1 100644 --- a/lib/Query_Processor.cpp +++ b/lib/Query_Processor.cpp @@ -367,8 +367,11 @@ class QP_query_digest_stats { //sprintf(qdsp->max_time,"%llu",max_time); my_itoa(qdsp->max_time,max_time); pta[10]=qdsp->max_time; - //sprintf(qdsp->hid,"%d",hid); - my_itoa(qdsp->hid,hid); + // we are reverting this back to the use of sprintf instead of my_itoa + // because with my_itoa we are losing the sign + // see issue #2285 + sprintf(qdsp->hid,"%d",hid); + //my_itoa(qdsp->hid,hid); pta[11]=qdsp->hid; //sprintf(qdsp->rows_affected,"%llu",rows_affected); my_itoa(qdsp->rows_affected,rows_affected);