mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🐛 Automatic cleanup of the local data repo may accidentally delete snapshots https://github.com/siyuan-note/siyuan/issues/13203
This commit is contained in:
parent
cc033c115d
commit
84aea8cd2f
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ func autoPurgeRepo(cron bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
retentionIndexIDs = gulu.Str.RemoveDuplicatedElem(retentionIndexIDs)
|
retentionIndexIDs = gulu.Str.RemoveDuplicatedElem(retentionIndexIDs)
|
||||||
if 1 > len(retentionIndexIDs) {
|
if 16 > len(retentionIndexIDs) {
|
||||||
logging.LogInfof("no index to purge [ellapsed=%.2fs]", time.Since(now).Seconds())
|
logging.LogInfof("no index to purge [ellapsed=%.2fs]", time.Since(now).Seconds())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue