Skip to content

Commit

Permalink
Using core.perfStandby
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnayak committed Feb 7, 2019
1 parent 4df3d3e commit df84739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/identity_store_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (i *IdentityStore) upsertEntityInTxn(ctx context.Context, txn *memdb.Txn, e

// At this point, identity store is operating case-sensitively.
// Persisting is allowed only on the primary.
if i.core.ReplicationState().HasState(consts.ReplicationPerformanceSecondary) || i.core.ReplicationState().HasState(consts.ReplicationPerformanceStandby) {
if i.core.ReplicationState().HasState(consts.ReplicationPerformanceSecondary) || i.core.perfStandby {
break
}
}
Expand Down

0 comments on commit df84739

Please sign in to comment.