diff options
author | Joe George <joe@zeroc.com> | 2021-02-02 11:31:50 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2021-02-02 11:31:50 -0500 |
commit | 8c8d242f6c31a2bcec1eddb2f39c2ca411079d9c (patch) | |
tree | 81865e431a54de6fc9807a7a6f74197e26b29bdc /cpp/src/IceGrid/FileCache.cpp | |
parent | Update Glacier2 tests to use C++11 mapping (diff) | |
download | ice-8c8d242f6c31a2bcec1eddb2f39c2ca411079d9c.tar.bz2 ice-8c8d242f6c31a2bcec1eddb2f39c2ca411079d9c.tar.xz ice-8c8d242f6c31a2bcec1eddb2f39c2ca411079d9c.zip |
IceGrid and IceStorm fixes
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) |