forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow several <graphite> targets (ClickHouse#603)
* allow several <graphite> targets * fix * fix * Adjustable parts * changelog version * fix * changelog * Style fixes * attachSystemTables * config describe * fixes * fixes
- Loading branch information
1 parent
daefb87
commit 670e98f
Showing
17 changed files
with
212 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
#include <string> | ||
#include <vector> | ||
|
||
namespace Poco | ||
{ | ||
namespace Util | ||
{ | ||
class AbstractConfiguration; | ||
} | ||
} | ||
namespace DB | ||
{ | ||
/// get all internal key names for given key | ||
std::vector<std::string> getMultipleKeysFromConfig(Poco::Util::AbstractConfiguration & config, const std::string & root, const std::string & name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#include <DB/Databases/IDatabase.h> | ||
|
||
namespace DB | ||
{ | ||
class Context; | ||
class AsynchronousMetrics; | ||
|
||
void attachSystemTablesServer(DatabasePtr system_database, Context * global_context, bool has_zookeeper); | ||
void attachSystemTablesLocal(DatabasePtr system_database); | ||
void attachSystemTablesAsync(DatabasePtr system_database, AsynchronousMetrics & async_metrics); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <DB/Common/getMultipleKeysFromConfig.h> | ||
|
||
#include <Poco/Util/AbstractConfiguration.h> | ||
#include <DB/Common/StringUtils.h> | ||
|
||
namespace DB | ||
{ | ||
std::vector<std::string> getMultipleKeysFromConfig(Poco::Util::AbstractConfiguration & config, const std::string & root, const std::string & name) | ||
{ | ||
std::vector<std::string> values; | ||
Poco::Util::AbstractConfiguration::Keys config_keys; | ||
config.keys(root, config_keys); | ||
for (const auto & key : config_keys) | ||
{ | ||
if (key != name && !(startsWith(key.data(), name + "[") && endsWith(key.data(), "]"))) | ||
continue; | ||
values.emplace_back(key); | ||
} | ||
return values; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.