made indexAll and retagAll atomic and faster

This commit is contained in:
ston1th 2019-08-27 21:36:35 +02:00
commit 5649acf6a8
6 changed files with 131 additions and 64 deletions

View file

@ -27,3 +27,15 @@ func validatePassword(pw string) (b []byte) {
b = hash.Sum(nil)
return
}
func eq(a, b []string) bool {
if len(a) != len(b) {
return false
}
for i, v := range a {
if v != b[i] {
return false
}
}
return true
}