mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Remove dynamic cast from check
This commit is contained in:
parent
c424db85b4
commit
2b235f1b1a
@ -3336,7 +3336,7 @@ void StorageReplicatedMergeTree::alter(
|
||||
}
|
||||
else if (rc == Coordination::ZBADVERSION)
|
||||
{
|
||||
if (dynamic_cast<const Coordination::SetResponse &>(*results[0]).error)
|
||||
if (results[0]->error)
|
||||
throw Exception("Metadata on replica is not up to date with common metadata in Zookeeper. Cannot alter", ErrorCodes::CANNOT_ASSIGN_ALTER);
|
||||
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user