Merge branch 'master' into post-metadata

This commit is contained in:
Harrison Healey
2018-11-22 13:11:55 -05:00
60 changed files with 2195 additions and 1822 deletions

View File

@@ -198,6 +198,7 @@ func (s *LayeredStore) UnlockFromMaster() {
}
func (s *LayeredStore) DropAllTables() {
defer s.LocalCacheLayer.Invalidate()
s.DatabaseLayer.DropAllTables()
}

View File

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