Browse Source

Merge pull request #6255 from richardkchapman/roxie-losing-state

HPCC-11932 Roxie attach causing Roxie cluster to load empty package

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 11 years ago
parent
commit
3c87809de3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      roxie/ccd/ccddali.cpp

+ 2 - 1
roxie/ccd/ccddali.cpp

@@ -251,7 +251,8 @@ private:
     static void writeCache(const char *foundLoc, const char *newLoc, IPropertyTree *val)
     static void writeCache(const char *foundLoc, const char *newLoc, IPropertyTree *val)
     {
     {
         CriticalBlock b(cacheCrit);
         CriticalBlock b(cacheCrit);
-        loadCache();
+        if (!cache)
+            initCache();
         cache->removeProp(foundLoc);
         cache->removeProp(foundLoc);
         if (val)
         if (val)
             cache->addPropTree(newLoc, LINK(val));
             cache->addPropTree(newLoc, LINK(val));