mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
adds some info to the exception about zookeeper path
This commit is contained in:
parent
0c5b0abfe2
commit
4942d85090
@ -3484,7 +3484,10 @@ std::optional<UInt64> StorageReplicatedMergeTree::totalBytes() const
|
||||
void StorageReplicatedMergeTree::assertNotReadonly() const
|
||||
{
|
||||
if (is_readonly)
|
||||
throw Exception("Table is in readonly mode", ErrorCodes::TABLE_IS_READ_ONLY);
|
||||
{
|
||||
auto err = "Table is in readonly mode (zookeeper path: " + zookeeper_path + ")";
|
||||
throw Exception(err, ErrorCodes::TABLE_IS_READ_ONLY);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user