add reload census changes (#26456)

This commit is contained in:
akshya96 2024-04-17 10:14:49 -07:00 committed by GitHub
parent 3f19f8b0f0
commit bd9c9c5daa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -10,3 +10,4 @@ import "context"
//go:generate go run github.com/hashicorp/vault/tools/stubmaker
func (c *Core) StartCensusReports(ctx context.Context) {}
func (c *Core) ReloadCensusActivityLog() error { return nil }

View File

@ -442,7 +442,9 @@ func (b *SystemBackend) handleActivityConfigUpdate(ctx context.Context, req *log
// reload census agent if retention months change during update when reporting is enabled
if prevRetentionMonths != config.RetentionMonths {
a.core.ReloadCensus()
if err := a.core.ReloadCensusActivityLog(); err != nil {
return nil, err
}
}
if len(warnings) > 0 {