Update DatabaseCatalog.cpp

This commit is contained in:
OnePiece 2021-08-24 20:05:29 +08:00 committed by GitHub
parent 01f4e2e0e0
commit 40673aa1f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -609,6 +609,12 @@ Dependencies DatabaseCatalog::getDependencies(const StorageID & from) const
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,
const StorageID & new_where)