More raw loader fixes

This commit is contained in:
mcrakhman 2022-12-12 21:22:35 +01:00 committed by Mikhail Iudin
parent d8461fb856
commit f2f2be36e9
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

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
})