Sync plugin reload file

This commit is contained in:
Jeff Mitchell 2019-04-23 10:22:56 -04:00
parent e56a4b96bd
commit a4285a487d

View file

@ -106,6 +106,10 @@ func (c *Core) reloadMatchingPlugin(ctx context.Context, pluginName string) erro
// reloadBackendCommon is a generic method to reload a backend provided a
// MountEntry.
func (c *Core) reloadBackendCommon(ctx context.Context, entry *MountEntry, isAuth bool) error {
// Make sure our cache is up-to-date. Since some singleton mounts can be
// tuned, we do this before the below check.
entry.SyncCache()
// We don't want to reload the singleton mounts. They often have specific
// inmemory elements and we don't want to touch them here.
if strutil.StrListContains(singletonMounts, entry.Type) {