From 97516a132ec8f67c70558efea5631cc1dd2e96c8 Mon Sep 17 00:00:00 2001 From: MyonKeminta Date: Wed, 3 Jul 2024 13:04:49 +0800 Subject: [PATCH] Fix UpdateOption Signed-off-by: MyonKeminta --- client/client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/client.go b/client/client.go index 1865fd0866ed..1636e1b4e74d 100644 --- a/client/client.go +++ b/client/client.go @@ -735,6 +735,12 @@ func (c *client) UpdateOption(option DynamicOption, value any) error { return errors.New("[pd] invalid value type for EnableFollowerHandle option, it should be bool") } c.option.setEnableFollowerHandle(enable) + case TSOClientConcurrencyFactor: + value, ok := value.(int) + if !ok { + return errors.New("[pd] invalid value type for TSOClientConcurrencyFactor option, it should be int") + } + c.option.setTSOClientConcurrencyFactor(value) default: return errors.New("[pd] unsupported client option") }