diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-09-03 15:42:19 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-09-03 15:42:19 +0200 |
commit | 91f6ebb998532b36fc70187b641a5b7404060422 (patch) | |
tree | ac88e961c68e4b09eb819f4b57b9ecac56854567 /cpp/src/IceGrid/ServerI.cpp | |
parent | ICE-5378 - Remove slice35d.dll from Windows installer (diff) | |
download | ice-91f6ebb998532b36fc70187b641a5b7404060422.tar.bz2 ice-91f6ebb998532b36fc70187b641a5b7404060422.tar.xz ice-91f6ebb998532b36fc70187b641a5b7404060422.zip |
Fixed ICE-5358 - allow IceGrid replica to initialize its database from another replica
Diffstat (limited to 'cpp/src/IceGrid/ServerI.cpp')
-rw-r--r-- | cpp/src/IceGrid/ServerI.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp index 244c7c0863f..3ed80939798 100644 --- a/cpp/src/IceGrid/ServerI.cpp +++ b/cpp/src/IceGrid/ServerI.cpp @@ -1639,7 +1639,7 @@ ServerI::activate() // // We first ensure that the application is replicated on all the // registries before to start the server. We only do this each - // time the server is updated or the initialy loaded on the node. + // time the server is updated or initialy loaded on the node. // if(waitForReplication) { @@ -1656,7 +1656,13 @@ ServerI::activate() // Compute the server command line options. // Ice::StringSeq options; - copy(desc->options.begin(), desc->options.end(), back_inserter(options)); + for(Ice::StringSeq::const_iterator p = desc->options.begin(); p != desc->options.end(); ++p) + { + if(!p->empty()) + { + options.push_back(*p); + } + } options.push_back("--Ice.Config=" + escapeProperty(_serverDir + "/config/config")); Ice::StringSeq envs; |