Skip to content

Commit

Permalink
fix client label missing problem (#10767)
Browse files Browse the repository at this point in the history
some operations will clear the client's label info, which makes the backend server(CN) can not separate the workloads through label info.

this PR corrected this unexpected clear-operation.

Approved by: @qingxinhome
  • Loading branch information
gouhongshen authored Jul 20, 2023
1 parent 44eef4b commit 9096c18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/frontend/computation_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package frontend

import (
"context"
"github.com/mohae/deepcopy"

"github.com/google/uuid"
"github.com/matrixorigin/matrixone/pkg/clusterservice"
Expand Down Expand Up @@ -339,7 +340,7 @@ func (cwft *TxnComputationWrapper) Compile(requestCtx context.Context, u interfa
cwft.proc,
cwft.stmt,
cwft.ses.isInternal,
cwft.ses.getCNLabels(),
deepcopy.Copy(cwft.ses.getCNLabels()).(map[string]string),
)

if _, ok := cwft.stmt.(*tree.ExplainAnalyze); ok {
Expand Down

0 comments on commit 9096c18

Please sign in to comment.