Merge branch 'reset-cache-on-schema' of github.com:54mir/pilosa into reset-cache-on-schema

This commit is contained in:
Samir Patel 2021-06-14 11:53:46 -05:00
commit bfc90d148d

2
api.go
View file

@ -960,7 +960,7 @@ func (api *API) Usage(ctx context.Context, remote bool) (map[string]NodeUsage, e
if api.usageCache.lastCalcDuration < (time.Second * 5) {
err := api.ResetUsageCache()
if err != nil {
api.server.logger.Infof("could not reset cache: %s", err)
api.server.logger.Infof("could not reset usageCache: %s", err)
}
}