Skip to content

Commit 924bf21

Browse files
committed
set replayer.executor default to 1
1 parent 074774a commit 924bf21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mongoshake/collector/main/collector.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ func sanitizeOptions() error {
240240
if len(conf.Options.TunnelAddress) > conf.Options.WorkerNum {
241241
return errors.New("then length of tunnel_address with type 'direct' shouldn't bigger than worker number")
242242
}
243-
if conf.Options.ReplayerExecutor < 1 {
244-
return errors.New("executor number should be large than 1")
243+
if conf.Options.ReplayerExecutor <= 0 {
244+
conf.Options.ReplayerExecutor = 1
245+
// return errors.New("executor number should be large than 1")
245246
}
246247
if conf.Options.ReplayerConflictWriteTo != executor.DumpConflictToDB &&
247248
conf.Options.ReplayerConflictWriteTo != executor.DumpConflictToSDK &&

0 commit comments

Comments
 (0)