mirror of https://github.com/milvus-io/milvus.git
Fix ddl check in rate limiter (#24436)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/24455/head
parent
71a7fef5c5
commit
5efa49f112
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue