From db3da872517d3cf621d4586e43a08d5acbce744e Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 12 Mar 2023 16:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/storage_memory.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/caches/storage_memory.go b/internal/caches/storage_memory.go index ea09ccb..345781e 100644 --- a/internal/caches/storage_memory.go +++ b/internal/caches/storage_memory.go @@ -508,7 +508,11 @@ func (this *MemoryStorage) flushItem(key string) { if !ok { return } - if !item.IsDone || item.IsExpired() { + if !item.IsDone { + remotelogs.Error("CACHE", "flush items failed: open writer failed: item has not been done") + return + } + if item.IsExpired() { return }