From 9188e31920c1193773b85f590f089c4954e41b52 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:33:31 +0800 Subject: [PATCH] fix: Do not recover failed indexes on startup --- dagstore/wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagstore/wrapper.go b/dagstore/wrapper.go index eadd91a3..cec53541 100644 --- a/dagstore/wrapper.go +++ b/dagstore/wrapper.go @@ -110,7 +110,7 @@ func NewDAGStore(ctx context.Context, // conditional throttling. MaxConcurrentIndex: cfg.MaxConcurrentIndex, MaxConcurrentReadyFetches: cfg.MaxConcurrentReadyFetches, - RecoverOnStart: dagstore.RecoverNow, + RecoverOnStart: dagstore.RecoverOnAcquire, } if cfg.MongoTopIndex != nil && len(cfg.MongoTopIndex.Url) != 0 {