Skip to content

Commit

Permalink
Re-enable splits. (#4749)
Browse files Browse the repository at this point in the history
Splits have been re-enabled in version 1.2.1 after Jepsen tests
encoutered no errors.

Re-enabling splits in master.
  • Loading branch information
martinmr authored Feb 8, 2020
1 parent b40aa98 commit b76fcbd
Show file tree
Hide file tree
Showing 2 changed files with 239 additions and 239 deletions.
3 changes: 1 addition & 2 deletions posting/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,7 @@ func (l *List) readListPart(startUid uint64) (*pb.PostingList, error) {

// shouldSplit returns true if the given plist should be split in two.
func shouldSplit(plist *pb.PostingList) bool {
return false
// return plist.Size() >= maxListSize && len(plist.Pack.Blocks) > 1
return plist.Size() >= maxListSize && len(plist.Pack.Blocks) > 1
}

// splitUpList checks the list and splits it in smaller parts if needed.
Expand Down
Loading

0 comments on commit b76fcbd

Please sign in to comment.