From 443c43753fcca0c38665dd9aff32355b2db64609 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 22 Nov 2022 10:40:54 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E6=94=B9=E8=BF=9B=E4=B9=A6=E7=AD=BE?= =?UTF-8?q?=E5=92=8C=E6=A0=87=E7=AD=BE=E9=9D=A2=E6=9D=BF=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E9=80=9F=E5=BA=A6=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/6677?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/tag.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/model/tag.go b/kernel/model/tag.go index 461d505e9..0da6a8aee 100644 --- a/kernel/model/tag.go +++ b/kernel/model/tag.go @@ -233,7 +233,9 @@ type Tags []*Tag func BuildTags() (ret *Tags) { WaitForWritingFiles() - sql.WaitForWritingDatabase() + if !sql.IsEmptyQueue() { + sql.WaitForWritingDatabase() + } ret = &Tags{} labels := labelTags()