فهرست منبع

HPCC-14925 Avoid core compiling directly from a git repository

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 9 سال پیش
والد
کامیت
6d451827af
2فایلهای تغییر یافته به همراه8 افزوده شده و 2 حذف شده
  1. 8 0
      ecl/eclcc/eclcc.cpp
  2. 0 2
      ecl/hql/hqlexpr.cpp

+ 8 - 0
ecl/eclcc/eclcc.cpp

@@ -473,7 +473,15 @@ int main(int argc, const char *argv[])
     queryLogMsgManager()->changeMonitorFilter(queryStderrLogMsgHandler(), filter);
 
     unsigned exitCode = doMain(argc, argv);
+
+#ifndef _DEBUG
+    //In release mode exit without calling all the clean up code.
+    //It is faster, and it helps avoids potential crashes if there are active objects which depend on objects in file hook dlls.
+    _exit(exitCode);
+#endif
+
     releaseAtoms();
+    ClearTypeCache();   // Clear this cache before the file hooks are unloaded
     removeFileHooks();
     return exitCode;
 }

+ 0 - 2
ecl/hql/hqlexpr.cpp

@@ -283,8 +283,6 @@ MODULE_EXIT()
     cachedNullRecord->Release();
     nullType->Release();
 
-    ClearTypeCache();
-
 #ifdef _REPORT_EXPRESSION_LEAKS
     if (exprCache->count())
     {