mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
7a43a87f5b
* fix another issue * use shard and replica name from Replicated database * fix Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
18 lines
428 B
C++
18 lines
428 B
C++
#include <Databases/DatabaseReplicatedHelpers.h>
|
|
#include <Databases/DatabaseReplicated.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
String getReplicatedDatabaseShardName(const DatabasePtr & database)
|
|
{
|
|
return assert_cast<const DatabaseReplicated *>(database.get())->getShardName();
|
|
}
|
|
|
|
String getReplicatedDatabaseReplicaName(const DatabasePtr & database)
|
|
{
|
|
return assert_cast<const DatabaseReplicated *>(database.get())->getReplicaName();
|
|
}
|
|
|
|
}
|