From f6d1bd2c87cf9ad689366ff417feddd65e3cdec8 Mon Sep 17 00:00:00 2001 From: Steve Yen Date: Thu, 3 Mar 2016 11:18:30 -0800 Subject: [PATCH] moss option MaxPreMergerBatches renamed --- index/store/moss/store.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index/store/moss/store.go b/index/store/moss/store.go index a3ce0d9a..a82e7d69 100644 --- a/index/store/moss/store.go +++ b/index/store/moss/store.go @@ -61,16 +61,16 @@ func NewEx(mo store.MergeOperator, config map[string]interface{}, } } - maxStackDirtyTopHeight := moss.DefaultCollectionOptions.MaxStackDirtyTopHeight - v, ok = config["mossMaxStackDirtyTopHeight"] + maxPreMergerBatches := moss.DefaultCollectionOptions.MaxPreMergerBatches + v, ok = config["mossMaxPreMergerBatches"] if ok { - maxStackDirtyTopHeightF, ok := v.(float64) + maxPreMergerBatchesF, ok := v.(float64) if !ok { return nil, fmt.Errorf("moss store,"+ - " could not parse config[mossMaxStackDirtyTopHeight]: %v", v) + " could not parse config[mossMaxPreMergerBatches]: %v", v) } - maxStackDirtyTopHeight = int(maxStackDirtyTopHeightF) + maxPreMergerBatches = int(maxPreMergerBatchesF) } mossLowerLevelStoreName := "" @@ -105,8 +105,8 @@ func NewEx(mo store.MergeOperator, config map[string]interface{}, options.MinMergePercentage = minMergePercentage } - if options.MaxStackDirtyTopHeight <= 0 { - options.MaxStackDirtyTopHeight = maxStackDirtyTopHeight + if options.MaxPreMergerBatches <= 0 { + options.MaxPreMergerBatches = maxPreMergerBatches } if options.Debug <= 0 {