███████████: added writing files to zookeeper [#METR-10172]

This commit is contained in:
Pavel Kartavyy 2014-03-14 14:48:54 +04:00
parent f53eba5eed
commit 72edd15363
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ public:
<session_timeout_ms>30000</session_timeout_ms>
</zookeeper>
*/
ZooKeeper(const Poco::Util::LayeredConfiguration & config, const std::string & config_name,
ZooKeeper(const Poco::Util::AbstractConfiguration & config, const std::string & config_name,
WatchFunction * watch = nullptr);
~ZooKeeper();

View File

@ -75,7 +75,7 @@ ZooKeeper::ZooKeeper(const std::string & hosts, int32_t sessionTimeoutMs, WatchF
struct ZooKeeperArgs
{
ZooKeeperArgs(const Poco::Util::LayeredConfiguration & config, const std::string & config_name)
ZooKeeperArgs(const Poco::Util::AbstractConfiguration & config, const std::string & config_name)
{
Poco::Util::AbstractConfiguration::Keys keys;
config.keys(config_name, keys);
@ -102,7 +102,7 @@ struct ZooKeeperArgs
size_t session_timeout_ms;
};
ZooKeeper::ZooKeeper(const Poco::Util::LayeredConfiguration & config, const std::string & config_name,
ZooKeeper::ZooKeeper(const Poco::Util::AbstractConfiguration & config, const std::string & config_name,
WatchFunction * watch)
{
ZooKeeperArgs args(config, config_name);