Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210310676
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210310676
Commits
39161cac
Commit
39161cac
authored
4 years ago
by
zhenshan.cao
Committed by
yefu.chen
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add collectonScheam when calling load_collection and load_partition
Signed-off-by:
zhenshan.cao
<
zhenshan.cao@zilliz.com
>
parent
a12b184e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/proxynode/task.go
+11
-0
11 additions, 0 deletions
internal/proxynode/task.go
with
11 additions
and
0 deletions
internal/proxynode/task.go
+
11
−
0
View file @
39161cac
...
...
@@ -1625,6 +1625,11 @@ func (lct *LoadCollectionTask) Execute() (err error) {
if
err
!=
nil
{
return
err
}
collSchema
,
err
:=
globalMetaCache
.
GetCollectionSchema
(
lct
.
CollectionName
)
if
err
!=
nil
{
return
err
}
request
:=
&
querypb
.
LoadCollectionRequest
{
Base
:
&
commonpb
.
MsgBase
{
MsgType
:
commonpb
.
MsgType_kLoadCollection
,
...
...
@@ -1634,6 +1639,7 @@ func (lct *LoadCollectionTask) Execute() (err error) {
},
DbID
:
0
,
CollectionID
:
collID
,
Schema
:
collSchema
,
}
lct
.
result
,
err
=
lct
.
queryserviceClient
.
LoadCollection
(
request
)
return
err
...
...
@@ -1770,6 +1776,10 @@ func (lpt *LoadPartitionTask) Execute() (err error) {
if
err
!=
nil
{
return
err
}
collSchema
,
err
:=
globalMetaCache
.
GetCollectionSchema
(
lpt
.
CollectionName
)
if
err
!=
nil
{
return
err
}
for
_
,
partitionName
:=
range
lpt
.
PartitionNames
{
partitionID
,
err
:=
globalMetaCache
.
GetPartitionID
(
lpt
.
CollectionName
,
partitionName
)
if
err
!=
nil
{
...
...
@@ -1787,6 +1797,7 @@ func (lpt *LoadPartitionTask) Execute() (err error) {
DbID
:
0
,
CollectionID
:
collID
,
PartitionIDs
:
partitionIDs
,
Schema
:
collSchema
,
}
lpt
.
result
,
err
=
lpt
.
queryserviceClient
.
LoadPartitions
(
request
)
return
err
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment