Merge branch 'release'
* release: lib/db: Fix inconsistency in sequence index (fixes #5149) (#5158)
This commit is contained in:
commit
4cb6bb6f64
@ -1765,6 +1765,15 @@ func sendIndexTo(prevSequence int64, conn protocol.Connection, folder string, fs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if shouldDebug() {
|
||||||
|
if fi.SequenceNo() < prevSequence+1 {
|
||||||
|
panic(fmt.Sprintln("sequence lower than requested, got:", fi.SequenceNo(), ", asked to start at:", prevSequence+1))
|
||||||
|
}
|
||||||
|
if f.Sequence > 0 && fi.SequenceNo() <= f.Sequence {
|
||||||
|
panic(fmt.Sprintln("non-increasing sequence, current:", fi.SequenceNo(), "<= previous:", f.Sequence))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
f = fi.(protocol.FileInfo)
|
f = fi.(protocol.FileInfo)
|
||||||
|
|
||||||
// Mark the file as invalid if any of the local bad stuff flags are set.
|
// Mark the file as invalid if any of the local bad stuff flags are set.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user