未验证 提交 15368f5e 编写于 作者: Y yihao.dai 提交者: GitHub

Fix ddl check in rate limiter (#24437)

Signed-off-by: Nbigsheeper <yihao.dai@zilliz.com>
上级 793864c1
...@@ -101,8 +101,8 @@ func (m *MultiRateLimiter) Check(collectionID int64, rt internalpb.RateType, n i ...@@ -101,8 +101,8 @@ func (m *MultiRateLimiter) Check(collectionID int64, rt internalpb.RateType, n i
func IsDDLRequest(rt internalpb.RateType) bool { func IsDDLRequest(rt internalpb.RateType) bool {
switch rt { switch rt {
case internalpb.RateType_DDLCollection | internalpb.RateType_DDLPartition | internalpb.RateType_DDLIndex | case internalpb.RateType_DDLCollection, internalpb.RateType_DDLPartition, internalpb.RateType_DDLIndex,
internalpb.RateType_DDLFlush | internalpb.RateType_DDLCompaction: internalpb.RateType_DDLFlush, internalpb.RateType_DDLCompaction:
return true return true
default: default:
return false return false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册