♻️ 改进后台任务判断重复

This commit is contained in:
Liang Ding 2023-01-28 16:16:24 +08:00
parent 83afeb5a8b
commit 23df378a32
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 8 additions and 4 deletions

View file

@ -157,7 +157,7 @@ func loadTreeByBlockID(id string) (ret *parse.Tree, err error) {
bt := treenode.GetBlockTree(id)
if nil == bt {
if task.ContainIndexTask() {
if task.ContainIndexTask(task.DatabaseIndex, task.DatabaseIndexFull) {
err = ErrIndexing
return
}