Browse Source

Merge pull request #8011 from ghalliday/issue14442b

HPCC-14442 Fix regression setting memory limit to 0

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 years ago
parent
commit
32537950ca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      roxie/roxiemem/roxiemem.cpp

+ 2 - 0
roxie/roxiemem/roxiemem.cpp

@@ -3800,6 +3800,8 @@ public:
         if (spillSize > systemMemoryLimit)
             spillSize = systemMemoryLimit;
         maxPageLimit = (unsigned) PAGES(bytes, HEAP_ALIGNMENT_SIZE);
+        if (maxPageLimit == 0)
+            maxPageLimit = UNLIMITED_PAGES;
         spillPageLimit = (unsigned) PAGES(spillSize, HEAP_ALIGNMENT_SIZE);
 
         if (memTraceLevel >= 2)