mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Limit SSCT WAL Check on Perf Standbys to Raft Backends Only (#15879)
* ensure that ssct wal check only occurs for non-raft storage on perf standbys * changelog
This commit is contained in:
3
changelog/15879.txt
Normal file
3
changelog/15879.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
core: Limit SSCT WAL checks on perf standbys to raft backends only
|
||||
```
|
||||
@@ -1945,6 +1945,12 @@ func (c *Core) checkSSCTokenInternal(ctx context.Context, token string, isPerfSt
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
// Disregard SSCT on perf-standbys for non-raft storage
|
||||
if c.perfStandby && c.getRaftBackend() == nil {
|
||||
return plainToken.Random, nil
|
||||
}
|
||||
|
||||
ep := int(plainToken.IndexEpoch)
|
||||
if ep < c.tokenStore.GetSSCTokensGenerationCounter() {
|
||||
return plainToken.Random, nil
|
||||
|
||||
Reference in New Issue
Block a user