Fixed Linux compile errors and made changes to pass new paramter to F_SlabManager::resize().
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@663 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -602,7 +602,7 @@ FSTATIC RCODE flmSetCacheLimits(
|
||||
}
|
||||
|
||||
if( RC_BAD( rc = gv_FlmSysData.pSlabManager->resize(
|
||||
uiNewTotalCacheSize, &uiNewTotalCacheSize)))
|
||||
uiNewTotalCacheSize, TRUE, &uiNewTotalCacheSize)))
|
||||
{
|
||||
// Log a message indicating that we couldn't pre-allocate
|
||||
// the cache
|
||||
@@ -643,11 +643,7 @@ DONT_PREALLOCATE:
|
||||
|
||||
if( bResizeAfterConfig)
|
||||
{
|
||||
if( gv_FlmSysData.pSlabManager->totalBytesAllocated() >
|
||||
uiNewTotalCacheSize)
|
||||
{
|
||||
(void)gv_FlmSysData.pSlabManager->resize( uiNewTotalCacheSize);
|
||||
}
|
||||
(void)gv_FlmSysData.pSlabManager->resize( uiNewTotalCacheSize, FALSE);
|
||||
}
|
||||
|
||||
gv_FlmSysData.uiMaxCache = uiNewTotalCacheSize;
|
||||
|
||||
Reference in New Issue
Block a user