فهرست منبع

Merge pull request #5155 from richardkchapman/roxie-wu-timings

HPCC-10436 Timings missing from roxie queries

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 11 سال پیش
والد
کامیت
206c72933d
1فایلهای تغییر یافته به همراه9 افزوده شده و 2 حذف شده
  1. 9 2
      roxie/ccd/ccd.hpp

+ 9 - 2
roxie/ccd/ccd.hpp

@@ -785,6 +785,8 @@ public: // Not very clean but I don't care
     bool intercept;
     bool blind;
     mutable CIArrayOf<LogItem> log;
+private:
+    ContextLogger(const ContextLogger &);  // Disable copy constructor
 public:
     IMPLEMENT_IINTERFACE;
 
@@ -799,7 +801,7 @@ public:
     }
     ~ContextLogger()
     {
-        delete timeReporter;
+        ::Release(timeReporter);
     }
 
     void outputXML(IXmlStreamFlusher &out)
@@ -945,6 +947,11 @@ public:
     {
         return timeReporter;
     }
+    void reset()
+    {
+        stats.reset();
+        timer->reset();
+    }
 };
 
 class StringContextLogger : public ContextLogger
@@ -963,7 +970,7 @@ public:
     }
     void set(const char *_id)
     {
-        stats.reset();
+        reset();
         id.set(_id);
     }
 };