Skip to content

Commit

Permalink
fix: update rg failed when alter database (#39356)
Browse files Browse the repository at this point in the history
issue: #36933
pr: #39355

Signed-off-by: chyezh <[email protected]>
  • Loading branch information
chyezh authored Jan 17, 2025
1 parent b699942 commit 0391b8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/rootcoord/alter_database_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/milvus-io/milvus/pkg/proto/querypb"
"github.com/milvus-io/milvus/pkg/proto/rootcoordpb"
"github.com/milvus-io/milvus/pkg/util/merr"
"github.com/milvus-io/milvus/pkg/util/typeutil"
)

type alterDatabaseTask struct {
Expand Down Expand Up @@ -177,7 +178,7 @@ func executeAlterDatabaseTaskSteps(ctx context.Context,
zap.Strings("newResourceGroups", newResourceGroups),
)
redoTask.AddAsyncStep(NewSimpleStep("", func(ctx context.Context) ([]nestedStep, error) {
colls, err := core.meta.ListCollections(ctx, oldDB.Name, ts, true)
colls, err := core.meta.ListCollections(ctx, oldDB.Name, typeutil.MaxTimestamp, true)
if err != nil {
log.Ctx(ctx).Warn("failed to trigger update load config for database", zap.Int64("dbID", oldDB.ID), zap.Error(err))
return nil, err
Expand Down

0 comments on commit 0391b8c

Please sign in to comment.