Skip to content

Commit 6e6f97f

Browse files
committed
MEDIUM: map file: flush content to disk
1 parent 1d679bb commit 6e6f97f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controller/haproxy/maps.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func (m Maps) Refresh(client api.HAProxyClient) (reload bool) {
9090
if _, err = f.WriteString(content); err != nil {
9191
logger.Error(err)
9292
}
93+
logger.Error(f.Sync())
9394
if err = client.SetMapContent(name, content); err != nil {
9495
if strings.HasPrefix(err.Error(), "maps dir doesn't exists") {
9596
logger.Debugf("creating Map file %s", name)

0 commit comments

Comments
 (0)