From c2aaf6cea2b664a966ebf001551aabf70b01b7a5 Mon Sep 17 00:00:00 2001 From: Patrick LeBlanc Date: Mon, 2 Dec 2019 15:18:42 -0500 Subject: [PATCH] Fixed compiler warning in resource manager. --- dbcon/joblist/resourcemanager.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dbcon/joblist/resourcemanager.cpp b/dbcon/joblist/resourcemanager.cpp index cbf44109f..bea05b29e 100644 --- a/dbcon/joblist/resourcemanager.cpp +++ b/dbcon/joblist/resourcemanager.cpp @@ -80,6 +80,7 @@ ResourceManager::ResourceManager(bool runningInExeMgr) : fJlProcessorThreadsPerScan(defaultProcessorThreadsPerScan), fJlNumScanReceiveThreads(defaultScanReceiveThreads), fTwNumThreads(defaultNumThreads), + fJlMaxOutstandingRequests(defaultMaxOutstandingRequests), fHJUmMaxMemorySmallSideDistributor(fHashJoinStr, "UmMaxMemorySmallSide", getUintVal(fHashJoinStr, "TotalUmMaxMemorySmallSide", defaultTotalUmMemory), @@ -87,8 +88,7 @@ ResourceManager::ResourceManager(bool runningInExeMgr) : 0), fHJPmMaxMemorySmallSideSessionMap( getUintVal(fHashJoinStr, "PmMaxMemorySmallSide", defaultHJPmMaxMemorySmallSide)), - isExeMgr(runningInExeMgr), - fJlMaxOutstandingRequests(defaultMaxOutstandingRequests) + isExeMgr(runningInExeMgr) { int temp; int configNumCores = -1; @@ -146,7 +146,7 @@ ResourceManager::ResourceManager(bool runningInExeMgr) : if (temp > defaultMaxOutstandingRequests) { fJlMaxOutstandingRequests = temp; - } + } } temp = getIntVal(fJobListStr, "NumScanReceiveThreads", -1); @@ -234,7 +234,7 @@ ResourceManager::ResourceManager(bool runningInExeMgr) : fAggNumBuckets = fAggNumThreads * 4; else fAggNumBuckets = fConfig->uFromText(nb); - + nr = fConfig->getConfig("RowAggregation", "RowAggrRowGroupsPerThread"); if (nr.empty()) @@ -418,4 +418,3 @@ bool ResourceManager::getMemory(int64_t amount, boost::shared_ptr sessi } //namespace -