Merge branch 'master' into post-metadata
Этот коммит содержится в:
@@ -198,6 +198,7 @@ func (s *LayeredStore) UnlockFromMaster() {
|
||||
}
|
||||
|
||||
func (s *LayeredStore) DropAllTables() {
|
||||
defer s.LocalCacheLayer.Invalidate()
|
||||
s.DatabaseLayer.DropAllTables()
|
||||
}
|
||||
|
||||
|
||||
@@ -111,3 +111,9 @@ func (s *LocalCacheSupplier) doClearCacheCluster(cache utils.ObjectCache) {
|
||||
s.cluster.SendClusterMessage(msg)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *LocalCacheSupplier) Invalidate() {
|
||||
s.doClearCacheCluster(s.reactionCache)
|
||||
s.doClearCacheCluster(s.roleCache)
|
||||
s.doClearCacheCluster(s.schemeCache)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user