mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/e2e: support CompactionBatchLimit flag
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
@@ -140,6 +140,7 @@ type etcdProcessClusterConfig struct {
|
||||
|
||||
MaxConcurrentStreams uint32 // default is math.MaxUint32
|
||||
WatchProcessNotifyInterval time.Duration
|
||||
CompactionBatchLimit int
|
||||
|
||||
debug bool
|
||||
|
||||
@@ -333,6 +334,9 @@ func (cfg *etcdProcessClusterConfig) etcdServerProcessConfigs() []*etcdServerPro
|
||||
if cfg.WatchProcessNotifyInterval != 0 {
|
||||
args = append(args, "--experimental-watch-progress-notify-interval", cfg.WatchProcessNotifyInterval.String())
|
||||
}
|
||||
if cfg.CompactionBatchLimit != 0 {
|
||||
args = append(args, "--experimental-compaction-batch-limit", fmt.Sprintf("%d", cfg.CompactionBatchLimit))
|
||||
}
|
||||
|
||||
if cfg.debug {
|
||||
args = append(args, "--debug")
|
||||
|
||||
Reference in New Issue
Block a user