aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-12 15:14:58 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-12 15:14:58 +0100
commit8ca2d399710195c5045c4a7db02e3c867bd4e87e (patch)
treedad8507b37608f753f459f4fe55dc634dc38426f /main.go
parente52a1f74a38cad3df083885aa8860a870a131cdb (diff)
downloadbottin-8ca2d399710195c5045c4a7db02e3c867bd4e87e.tar.gz
bottin-8ca2d399710195c5045c4a7db02e3c867bd4e87e.zip
Optimize some kv.List requests to not list all children
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 9267175..381c3b5 100644
--- a/main.go
+++ b/main.go
@@ -371,7 +371,7 @@ func (server *Server) objectExists(dn string) (bool, error) {
return false, err
}
- data, _, err := server.kv.List(prefix+"/", nil)
+ data, _, err := server.kv.List(prefix+"/attribute=", nil)
if err != nil {
return false, err
}