mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
lib/db: Don't panic debugging an inexistent file (#7534)
This commit is contained in:
parent
33212716cf
commit
7f0d4f6ba8
@ -312,7 +312,7 @@ func (s *Snapshot) DebugGlobalVersions(file string) VersionList {
|
||||
opStr := fmt.Sprintf("%s DebugGlobalVersions(%v)", s.folder, file)
|
||||
l.Debugf(opStr)
|
||||
vl, err := s.t.getGlobalVersions(nil, []byte(s.folder), []byte(osutil.NormalizedFilename(file)))
|
||||
if backend.IsClosed(err) {
|
||||
if backend.IsClosed(err) || backend.IsNotFound(err) {
|
||||
return VersionList{}
|
||||
} else if err != nil {
|
||||
s.fatalError(err, opStr)
|
||||
|
Loading…
Reference in New Issue
Block a user