From 04c492775e0abc05cdb2e3509d68bfcadfd97b7b Mon Sep 17 00:00:00 2001 From: Smilencer Date: Fri, 27 May 2022 16:40:48 +0800 Subject: [PATCH] bench: fix wrong woakload loading (#1827) --- components/bench/ycsb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/bench/ycsb.go b/components/bench/ycsb.go index 2db1e11e5c..82bf3da5f4 100644 --- a/components/bench/ycsb.go +++ b/components/bench/ycsb.go @@ -84,11 +84,11 @@ func (config ycsbConfig) toProperties() (*properties.Properties, error) { // these config are always included in the config file // should be overwritten if they are passed through the command line - if config.ReadProportion != 0 { + if config.ReadProportion != 0.95 { // we don't need to check errors since we disabled expansion _, _, _ = result.Set("readproportion", fmt.Sprint(config.ReadProportion)) } - if config.UpdateProportion != 0 { + if config.UpdateProportion != 0.05 { _, _, _ = result.Set("updateproportion", fmt.Sprint(config.UpdateProportion)) } if config.ScanProportion != 0 {