enhance: [2.5] Fill dbName for `OperatePrivilegeV2Request` in interceptor (#42898) (#42904)

Cherry-pick from master
pr: #42898

Related to #40340

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/42924/head
congqixia 2025-06-24 10:08:41 +08:00 committed by GitHub
parent c88f1be985
commit 1e55112de7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -280,6 +280,10 @@ func fillDatabase(ctx context.Context, req interface{}) (context.Context, interf
r.DbName = GetCurDBNameFromContextOrDefault(ctx)
}
return ctx, r
case *milvuspb.OperatePrivilegeV2Request:
if r.DbName == "" {
r.DbName = GetCurDBNameFromContextOrDefault(ctx)
}
default:
}
return ctx, req