From d3e4a31058344698b3365cafcad031406b73b1bf Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 20 Mar 2020 23:39:32 -0700 Subject: [PATCH] filer: fix where deletion can miss under high concurrency --- weed/util/queue_unbounded.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/queue_unbounded.go b/weed/util/queue_unbounded.go index 664cd965e..496b9f844 100644 --- a/weed/util/queue_unbounded.go +++ b/weed/util/queue_unbounded.go @@ -18,7 +18,7 @@ func (q *UnboundedQueue) EnQueue(items ...string) { q.inboundLock.Lock() defer q.inboundLock.Unlock() - q.outbound = append(q.outbound, items...) + q.inbound = append(q.inbound, items...) }