Skip to content
Snippets Groups Projects
Unverified Commit a90f70a8 authored by Ashwin Ramesh's avatar Ashwin Ramesh
Browse files

Fix: Updating curBlock pointer

parent 8794452c
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,8 @@ func (l *WriteIterator) Append(uid uint64) {
if l.bidx == len(l.list.Blocks) {
// If we reached the end of blocks, add a new one.
l.list.Blocks = append(l.list.Blocks, &task.Block{List: make([]uint64, blockSize)})
l.curBlock = l.list.Blocks[l.bidx]
}
l.curBlock = l.list.Blocks[l.bidx]
l.curBlock.List[l.lidx] = uid
l.lidx++
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment