0
0

Merge pull request #682 from steveyen/scorch

scorch added kvconfig unsafe_batch option
This commit is contained in:
Steve Yen 2017-12-20 10:21:49 -08:00 committed by GitHub
commit d55ef26c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,9 +81,9 @@ func NewScorch(storeName string, config map[string]interface{}, analysisQueue *i
if ok { if ok {
rv.readOnly = ro rv.readOnly = ro
} }
// hack for now to disable safe batches in FTS ub, ok := config["unsafe_batch"].(bool)
if storeName == "moss" { if ok {
rv.unsafeBatch = true rv.unsafeBatch = ub
} }
return rv, nil return rv, nil
} }