More raw loader fixes

This commit is contained in:
mcrakhman 2022-12-12 21:22:35 +01:00
parent e0c1e6f19d
commit 09acec0d11
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

View File

@ -143,6 +143,7 @@ func (r *rawChangeLoader) LoadFromStorage(commonSnapshot string, heads, breakpoi
}
if !exists {
entry, err = r.loadEntry(id)
entry.position = -1
if err != nil {
continue
}
@ -204,7 +205,6 @@ func (r *rawChangeLoader) LoadFromStorage(commonSnapshot string, heads, breakpoi
if entry.position != -1 {
buffer[entry.position] = nil
}
entry.position = len(buffer) + 1
return entry
})