diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-11-05 12:55:25 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-11-05 12:55:25 -0330 |
commit | a548114af8698b6ede6d3815ff51c9e4547cea29 (patch) | |
tree | a3bac345625ed559e3d361ddb12e0ab76f746fc5 /cpp/src/IceStorm/Instance.cpp | |
parent | IceGrid: catch LMDB exceptions on Database creation (diff) | |
download | ice-a548114af8698b6ede6d3815ff51c9e4547cea29.tar.bz2 ice-a548114af8698b6ede6d3815ff51c9e4547cea29.tar.xz ice-a548114af8698b6ede6d3815ff51c9e4547cea29.zip |
Added properties to set the database map size for IceGrid/IceStorm
Diffstat (limited to 'cpp/src/IceStorm/Instance.cpp')
-rw-r--r-- | cpp/src/IceStorm/Instance.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IceStorm/Instance.cpp b/cpp/src/IceStorm/Instance.cpp index 8674c057ba9..afdeec82db9 100644 --- a/cpp/src/IceStorm/Instance.cpp +++ b/cpp/src/IceStorm/Instance.cpp @@ -54,7 +54,8 @@ PersistentInstance::PersistentInstance( const NodePrx& nodeProxy) : Instance(instanceName, name, communicator, publishAdapter, topicAdapter, nodeAdapter, nodeProxy), _dbLock(communicator->getProperties()->getPropertyWithDefault(name + ".LMDB.Path", name) + "/icedb.lock"), - _dbEnv(communicator->getProperties()->getPropertyWithDefault(name + ".LMDB.Path", name), 2) + _dbEnv(communicator->getProperties()->getPropertyWithDefault(name + ".LMDB.Path", name), 2, + communicator->getProperties()->getPropertyAsIntWithDefault(name + ".LMDB.MapSize", 100) * 1024 * 1024) { try { |