Fix shard num limit (#22188)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
pull/22212/head
Jiquan Long 2023-02-16 11:10:35 +08:00 committed by GitHub
parent cad39ebfc3
commit fa8a922449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func (t *createCollectionTask) validate() error {
shardsNum := int64(t.Req.GetShardsNum())
cfgMaxShardNum := Params.RootCoordCfg.DmlChannelNum
if shardsNum >= cfgMaxShardNum {
if shardsNum > cfgMaxShardNum {
return fmt.Errorf("shard num (%d) exceeds max configuration (%d)", shardsNum, cfgMaxShardNum)
}