Skip to content

Commit

Permalink
Don't setup plugin reload on perf standbys (#9352)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller authored Jun 30, 2020
1 parent be0950c commit c5b2eb1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vault/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -1937,11 +1937,15 @@ func (s standardUnsealStrategy) unseal(ctx context.Context, logger log.Logger, c
if err := c.setupAuditedHeadersConfig(ctx); err != nil {
return err
}
} else {
c.auditBroker = NewAuditBroker(c.logger)
}

if !c.ReplicationState().HasState(consts.ReplicationPerformanceSecondary | consts.ReplicationDRSecondary) {
//Cannot do this above, as we need other resources like mounts to be setup
if err := c.setupPluginReload(); err != nil {
return err
}
} else {
c.auditBroker = NewAuditBroker(c.logger)
}

if c.getClusterListener() != nil && (c.ha != nil || shouldStartClusterListener(c)) {
Expand Down

0 comments on commit c5b2eb1

Please sign in to comment.