mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-11 16:17:39 +02:00
fix databroker restart versioning, handle missing sessions (#1145)
* fix databroker restart versioning, handle missing sessions * send empty server version to detect change * only rebuild if there are updated records
This commit is contained in:
parent
a5e8abd6af
commit
557aef2a33
7 changed files with 53 additions and 62 deletions
|
@ -178,10 +178,11 @@ func (src *ConfigSource) runUpdater(cfg *config.Config) {
|
|||
}
|
||||
onSuccess()
|
||||
|
||||
src.onSync(res.GetRecords())
|
||||
|
||||
for _, record := range res.GetRecords() {
|
||||
recordVersion = record.GetVersion()
|
||||
if len(res.GetRecords()) > 0 {
|
||||
src.onSync(res.GetRecords())
|
||||
for _, record := range res.GetRecords() {
|
||||
recordVersion = record.GetVersion()
|
||||
}
|
||||
}
|
||||
|
||||
src.mu.Lock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue