mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
enhance: Fill dbname for AddCollectionFieldRequest (#41237)
Related to #39718 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
5318f3085c
commit
154a2a68e0
@ -275,6 +275,11 @@ func fillDatabase(ctx context.Context, req interface{}) (context.Context, interf
|
||||
r.DbName = GetCurDBNameFromContextOrDefault(ctx)
|
||||
}
|
||||
return ctx, r
|
||||
case *milvuspb.AddCollectionFieldRequest:
|
||||
if r.DbName == "" {
|
||||
r.DbName = GetCurDBNameFromContextOrDefault(ctx)
|
||||
}
|
||||
return ctx, r
|
||||
default:
|
||||
}
|
||||
return ctx, req
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user