More raw loader fixes
This commit is contained in:
parent
d8461fb856
commit
f2f2be36e9
@ -143,6 +143,7 @@ func (r *rawChangeLoader) LoadFromStorage(commonSnapshot string, heads, breakpoi
|
|||||||
}
|
}
|
||||||
if !exists {
|
if !exists {
|
||||||
entry, err = r.loadEntry(id)
|
entry, err = r.loadEntry(id)
|
||||||
|
entry.position = -1
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -204,7 +205,6 @@ func (r *rawChangeLoader) LoadFromStorage(commonSnapshot string, heads, breakpoi
|
|||||||
if entry.position != -1 {
|
if entry.position != -1 {
|
||||||
buffer[entry.position] = nil
|
buffer[entry.position] = nil
|
||||||
}
|
}
|
||||||
entry.position = len(buffer) + 1
|
|
||||||
return entry
|
return entry
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user