summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/IceGrid/Client.cpp12
-rw-r--r--cpp/src/IceStorm/Admin.cpp11
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;
}