Skip to content

Commit 2748a5d

Browse files
HuSharpti-chi-bot
authored andcommitted
This is an automated cherry-pick of pingcap#56015
Signed-off-by: ti-chi-bot <[email protected]>
1 parent 5665343 commit 2748a5d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/executor/internal/querywatch/query_watch.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,20 @@ func setWatchOption(ctx context.Context,
114114
}
115115

116116
// fromQueryWatchOptionList is used to create a QuarantineRecord with some QueryWatchOption ast nodes.
117+
<<<<<<< HEAD
117118
func fromQueryWatchOptionList(ctx context.Context, sctx, newSctx sessionctx.Context, optionList []*ast.QueryWatchOption) (*resourcegroup.QuarantineRecord, error) {
118119
record := &resourcegroup.QuarantineRecord{
119120
Source: resourcegroup.ManualSource,
120121
StartTime: time.Now(),
121122
EndTime: resourcegroup.NullTime,
123+
=======
124+
func fromQueryWatchOptionList(ctx context.Context, sctx, newSctx sessionctx.Context,
125+
optionList []*ast.QueryWatchOption) (*runaway.QuarantineRecord, error) {
126+
record := &runaway.QuarantineRecord{
127+
Source: runaway.ManualSource,
128+
StartTime: time.Now().UTC(),
129+
EndTime: runaway.NullTime,
130+
>>>>>>> 1dc045fa1a2 (runaway: change `QUERY WATCH` time type to UTC (#56015))
122131
}
123132
for _, op := range optionList {
124133
if err := setWatchOption(ctx, sctx, newSctx, record, op); err != nil {

0 commit comments

Comments
 (0)