Fix ddl check in rate limiter (#24436)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/24455/head
yihao.dai 2023-05-26 17:37:30 +08:00 committed by GitHub
parent 71a7fef5c5
commit 5efa49f112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ func (m *MultiRateLimiter) Check(collectionID int64, rt internalpb.RateType, n i
func IsDDLRequest(rt internalpb.RateType) bool {
switch rt {
case internalpb.RateType_DDLCollection | internalpb.RateType_DDLPartition | internalpb.RateType_DDLIndex |
internalpb.RateType_DDLFlush | internalpb.RateType_DDLCompaction:
case internalpb.RateType_DDLCollection, internalpb.RateType_DDLPartition, internalpb.RateType_DDLIndex,
internalpb.RateType_DDLFlush, internalpb.RateType_DDLCompaction:
return true
default:
return false