diff options
author | Jose <jose@zeroc.com> | 2009-12-17 00:46:18 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2009-12-17 00:46:18 +0100 |
commit | 188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd (patch) | |
tree | cbbffe0c5d88d4d2ea8073862de7c10ac209a5f5 /cpp/src | |
parent | Remove StaticMutexTest & RWRecMutexTest (diff) | |
download | ice-188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd.tar.bz2 ice-188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd.tar.xz ice-188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd.zip |
4490 - icegridadmin doesn't work if icegrid using sql.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 12 | ||||
-rw-r--r-- | cpp/src/IceStorm/Admin.cpp | 11 |
2 files changed, 20 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index c070016b001..5340df5b0f4 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -228,8 +228,16 @@ Client::main(Ice::StringSeq& args) try { _appName = args[0]; - _communicator = Ice::initialize(args); - + Ice::InitializationData id; + id.properties = Ice::createProperties(args); + // + // We don't want to load DB plug-ins with icegridadmin, as this will + // cause FileLock issues when run with the same configuration file + // used by the service. + // + id.properties->setProperty("Ice.Plugin.DB", ""); + _communicator = Ice::initialize(id); + { IceUtilInternal::MutexPtrLock<IceUtil::Mutex> sync(_staticMutex); _globalClient = this; diff --git a/cpp/src/IceStorm/Admin.cpp b/cpp/src/IceStorm/Admin.cpp index 63413847079..3d8de08fcde 100644 --- a/cpp/src/IceStorm/Admin.cpp +++ b/cpp/src/IceStorm/Admin.cpp @@ -39,7 +39,16 @@ main(int argc, char* argv[]) #endif { Client app; - int rc = app.main(argc, argv); + Ice::InitializationData id; + Ice::StringSeq args = Ice::argsToStringSeq(argc, argv); + id.properties = Ice::createProperties(args); + // + // We don't want to load DB plug-ins with icestormadmin, as this will + // cause FileLock issues when run with the same configuration file + // used by the service. + // + id.properties->setProperty("Ice.Plugin.DB", ""); + int rc = app.main(argc, argv, id); return rc; } |