From 8c8d242f6c31a2bcec1eddb2f39c2ca411079d9c Mon Sep 17 00:00:00 2001 From: Joe George Date: Tue, 2 Feb 2021 11:31:50 -0500 Subject: IceGrid and IceStorm fixes --- cpp/src/IceGrid/FileCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/IceGrid/FileCache.cpp') diff --git a/cpp/src/IceGrid/FileCache.cpp b/cpp/src/IceGrid/FileCache.cpp index ba06b25d61d..2e8cde52961 100644 --- a/cpp/src/IceGrid/FileCache.cpp +++ b/cpp/src/IceGrid/FileCache.cpp @@ -17,7 +17,7 @@ using namespace std; using namespace IceGrid; FileCache::FileCache(const shared_ptr& com) : - _messageMaxSize(com->getProperties()->getPropertyAsIntWithDefault("Ice.MessageMaxSize", 1024) * 1024 - 256) + _messageSizeMax(com->getProperties()->getPropertyAsIntWithDefault("Ice.MessageSizeMax", 1024) * 1024 - 256) { } @@ -126,9 +126,9 @@ FileCache::read(const string& file, long long offset, int size, long long& newOf { assert(size > 0); - if(size > _messageMaxSize) + if(size > _messageSizeMax) { - size = _messageMaxSize; + size = _messageSizeMax; } if(size <= 5) -- cgit v1.2.3