From 40673aa1f59479f439f3b43cfc7fa234fdcc22e6 Mon Sep 17 00:00:00 2001 From: OnePiece <54787696+zhongyuankai@users.noreply.github.com> Date: Tue, 24 Aug 2021 20:05:29 +0800 Subject: [PATCH] Update DatabaseCatalog.cpp --- src/Interpreters/DatabaseCatalog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Interpreters/DatabaseCatalog.cpp b/src/Interpreters/DatabaseCatalog.cpp index fd6b5b9a810..73884476091 100644 --- a/src/Interpreters/DatabaseCatalog.cpp +++ b/src/Interpreters/DatabaseCatalog.cpp @@ -608,6 +608,12 @@ Dependencies DatabaseCatalog::getDependencies(const StorageID & from) const return {}; return Dependencies(iter->second.begin(), iter->second.end()); } + +void DatabaseCatalog::getViewDependencies(ViewDependencies & view_dependencies_) const +{ + std::lock_guard lock{databases_mutex}; + view_dependencies_ = view_dependencies; +} void DatabaseCatalog::updateDependency(const StorageID & old_from, const StorageID & old_where, const StorageID & new_from,