Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil-goel committed Oct 16, 2024
1 parent 0f0cec5 commit ab8d9a6
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 255 deletions.
4 changes: 2 additions & 2 deletions posting/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,9 @@ func (r *rebuilder) RunWithoutTemp(ctx context.Context) error {
mpost.CommitTs = item.Version()
}
if l.mutationMap == nil {
l.mutationMap = make(map[uint64]*pb.PostingList)
l.mutationMap = newMutableMap()
}
l.mutationMap[pl.CommitTs] = pl
l.mutationMap.oldList[pl.CommitTs] = pl
return nil
})
if err != nil {
Expand Down
Loading

0 comments on commit ab8d9a6

Please sign in to comment.