diff options
author | Alex Auvolat <alex@adnab.me> | 2021-03-09 18:24:30 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-03-09 18:24:30 +0100 |
commit | dc3fd4df659bb35d7858714a429fc797bf5f1222 (patch) | |
tree | 3fe72366e98994067264b87ece0b53df8bde4d10 /write.go | |
parent | b17e3fe3c7636ab00aa7db123e10d5b6a6bc540c (diff) | |
download | bottin-dc3fd4df659bb35d7858714a429fc797bf5f1222.tar.gz bottin-dc3fd4df659bb35d7858714a429fc797bf5f1222.zip |
Use consul's stale reads by default
Diffstat (limited to 'write.go')
-rw-r--r-- | write.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -186,7 +186,7 @@ func (server *Server) handleDeleteInternal(state *State, r *message.DelRequest) return ldap.LDAPResultInvalidDNSyntax, err } - items, _, err := server.kv.List(path+"/", nil) + items, _, err := server.kv.List(path+"/", &server.readOpts) if err != nil { return ldap.LDAPResultOperationsError, err } @@ -299,7 +299,7 @@ func (server *Server) handleModifyInternal(state *State, r *message.ModifyReques return ldap.LDAPResultInvalidDNSyntax, err } - items, _, err := server.kv.List(path+"/attribute=", nil) + items, _, err := server.kv.List(path+"/attribute=", &server.readOpts) if err != nil { return ldap.LDAPResultOperationsError, err } |