From 29eb333f8e6ae41a255c1d05a991582c232c4064 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 17 Dec 2019 21:15:28 -0800 Subject: [PATCH] fix comparing --- weed/filer2/entry_codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer2/entry_codec.go b/weed/filer2/entry_codec.go index d0045597a..3a2dc6134 100644 --- a/weed/filer2/entry_codec.go +++ b/weed/filer2/entry_codec.go @@ -107,7 +107,7 @@ func eq(a, b map[string][]byte) bool { } for k, v := range a { - if w, ok := b[k]; !ok || bytes.Equal(v, w) { + if w, ok := b[k]; !ok || !bytes.Equal(v, w) { return false } }