This commit is contained in:
Alexander Tokmakov 2022-07-29 20:41:23 +02:00
parent 6f88065cc1
commit a11fad1561

View File

@ -784,7 +784,7 @@ void DatabaseReplicated::recoverLostReplica(const ZooKeeperPtr & current_zookeep
dropped_dictionaries += table->isDictionary();
table->flushAndShutdown();
if (table->getName() == "MaterializedView")
if (table->getName() == "MaterializedView" || table->getName() == "WindowView")
{
/// We have to drop MV inner table, so MV will not try to do it implicitly breaking some invariants.
/// Also we have to commit metadata transaction, because it's not committed by default for inner tables of MVs.