mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
lib/db: Don't panic on seq. coruption when debugging (#6662)
This commit is contained in:
parent
668979605b
commit
5b34c31cb3
@ -272,8 +272,7 @@ func (t *readOnlyTransaction) withHaveSequence(folder []byte, startSeq int64, fn
|
||||
|
||||
if shouldDebug() {
|
||||
if seq := t.keyer.SequenceFromSequenceKey(dbi.Key()); f.Sequence != seq {
|
||||
l.Warnf("Sequence index corruption (folder %v, file %v): sequence %d != expected %d", string(folder), f.Name, f.Sequence, seq)
|
||||
panic("sequence index corruption")
|
||||
l.Debugf("Sequence index corruption (folder %v, file %v): sequence %d != expected %d", string(folder), f.Name, f.Sequence, seq)
|
||||
}
|
||||
}
|
||||
if !fn(f) {
|
||||
|
Loading…
Reference in New Issue
Block a user