0
0
Fork 0

scorch zap merge uses DefaultChunkFactor

This commit is contained in:
Steve Yen 2018-01-24 09:13:16 -08:00
parent 603425c2c5
commit 29d526a7c2
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func (s *Scorch) planMergeAtSnapshot(ourSnapshot *IndexSnapshot) error {
filename := zapFileName(newSegmentID)
s.markIneligibleForRemoval(filename)
path := s.path + string(os.PathSeparator) + filename
newDocNums, err := zap.Merge(segmentsToMerge, docsToDrop, path, 1024)
newDocNums, err := zap.Merge(segmentsToMerge, docsToDrop, path, DefaultChunkFactor)
if err != nil {
s.unmarkIneligibleForRemoval(filename)
return fmt.Errorf("merging failed: %v", err)