Merge branch 'master' into post-metadata

Этот коммит содержится в:
Harrison Healey
2018-11-22 13:11:55 -05:00
родитель 5f65356a3f d263353e85
Коммит c9f3d03b6d
60 изменённых файлов: 2195 добавлений и 1822 удалений

Просмотреть файл

@@ -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)
}