This commit is contained in:
Alexander Kuzmenkov 2021-04-01 16:08:18 +03:00
parent ac68b59129
commit c7bf01fa33

View File

@ -37,7 +37,7 @@ void StorageSystemClusters::fillData(MutableColumns & res_columns, const Context
const auto databases = DatabaseCatalog::instance().getDatabases();
for (const auto & name_and_database : databases)
{
if (const auto * replicated == typeid_cast<const DatabaseReplicated *>(name_and_database.second.get()))
if (const auto * replicated = typeid_cast<const DatabaseReplicated *>(name_and_database.second.get()))
{
// A quick fix for stateless tests with DatabaseReplicated. Its ZK
// node can be destroyed at any time. If another test lists