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/IceGrid/Database.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/IceGrid/Database.cpp')
-rw-r--r-- | cpp/src/IceGrid/Database.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Database.cpp b/cpp/src/IceGrid/Database.cpp index 8adffcc3f37..f1bb78bbd90 100644 --- a/cpp/src/IceGrid/Database.cpp +++ b/cpp/src/IceGrid/Database.cpp @@ -215,8 +215,9 @@ Database::Database(const Ice::ObjectAdapterPtr& registryAdapter, _objectCache(_communicator), _allocatableObjectCache(_communicator), _serverCache(_communicator, _instanceName, _nodeCache, _adapterCache, _objectCache, _allocatableObjectCache), - _dbLock(_communicator->getProperties()->getProperty("Registry.LMDB.Path") + "/icedb.lock"), - _env(_communicator->getProperties()->getProperty("Registry.LMDB.Path"), 8), + _dbLock(_communicator->getProperties()->getProperty("IceGrid.Registry.Data") + "/icedb.lock"), + _env(_communicator->getProperties()->getProperty("IceGrid.Registry.Data"), 8, + _communicator->getProperties()->getPropertyAsIntWithDefault("IceGrid.Registry.LMDB.MapSize", 100) *1024*1024), _pluginFacade(RegistryPluginFacadeIPtr::dynamicCast(getRegistryPluginFacade())), _lock(0) { |