diff options
Diffstat (limited to 'cpp/src/IceGrid/FileCache.cpp')
-rw-r--r-- | cpp/src/IceGrid/FileCache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<Ice::Communicator>& 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) |