This commit is contained in:
Liang Ding 2023-01-09 10:37:56 +08:00
parent dc112fd56c
commit 72dd9192ae
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D

View File

@ -1264,7 +1264,7 @@ func autoFixIndex() {
btUpdated, _ := time.Parse("20060102150405", updated) btUpdated, _ := time.Parse("20060102150405", updated)
dbUpdated, _ := time.Parse("20060102150405", rootUpdated) dbUpdated, _ := time.Parse("20060102150405", rootUpdated)
if dbUpdated.Before(btUpdated.Add(-1 * time.Minute)) { if dbUpdated.Before(btUpdated.Add(-10 * time.Minute)) {
logging.LogWarnf("tree [%s] is not up to date, reindex it", rootID) logging.LogWarnf("tree [%s] is not up to date, reindex it", rootID)
reindexTree(rootID, i, size) reindexTree(rootID, i, size)
continue continue