Updating App config should use primary (#32428)

For #28713

Refactored the PATH fleet/config end-point to use the primary DB node
for both persisting changes and fetching modified App Config to avoid
stale UI due to read replica delay.
This commit is contained in:
Juan Fernandez
2025-08-29 14:02:59 -04:00
committed by GitHub
parent cbea2bf12e
commit 30fbb40377
2 changed files with 2 additions and 1 deletions
@@ -0,0 +1 @@
* Refactored PATH fleet/config end-point to use the primary DB node for both persisting changes and fetching modified App Config.
+1 -1
View File
@@ -825,7 +825,7 @@ func (svc *Service) ModifyAppConfig(ctx context.Context, p []byte, applyOpts fle
}
// retrieve new app config with obfuscated secrets
obfuscatedAppConfig, err := svc.ds.AppConfig(ctx)
obfuscatedAppConfig, err := svc.ds.AppConfig(ctxdb.RequirePrimary(ctx, true))
if err != nil {
return nil, err
}