فهرست منبع

Roxie query timing stats using uninitialized values

Spotted by cppcheck - the values used for reporting counts of executed
queries are not properly initialized and therefore the reports are liable
to be wrong.

Add code to constructor to initialize the values.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 سال پیش
والد
کامیت
62291cdaf4
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      roxie/ccd/ccdsnmp.hpp

+ 3 - 0
roxie/ccd/ccdsnmp.hpp

@@ -38,6 +38,9 @@ public:
 public:
     RoxieQueryStats()
     {
+        count = 0;
+        failedCount = 0;
+        atomic_set(&active, 0);
         totalTime = 0;
         maxTime = 0;
         minTime = 0;