forked from pingcap/tiflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redo(ticdc): support gcs scheme in redo log (pingcap#7993) (pingcap#8016
) close pingcap#6335, close pingcap#7987
- Loading branch information
1 parent
38f1d35
commit f69c799
Showing
51 changed files
with
1,411 additions
and
1,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2022 PingCAP, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
//go:generate msgp | ||
|
||
package common | ||
|
||
import ( | ||
"github.com/pingcap/tiflow/cdc/model" | ||
) | ||
|
||
// LogMeta is used for store meta info. | ||
type LogMeta struct { | ||
CheckpointTs uint64 `msg:"checkpointTs"` | ||
ResolvedTs uint64 `msg:"resolvedTs"` | ||
} | ||
|
||
// ParseMeta parses meta. | ||
func ParseMeta(metas []*LogMeta, checkpointTs, resolvedTs *model.Ts) { | ||
*checkpointTs = 0 | ||
*resolvedTs = 0 | ||
for _, meta := range metas { | ||
if *checkpointTs < meta.CheckpointTs { | ||
*checkpointTs = meta.CheckpointTs | ||
} | ||
if *resolvedTs < meta.ResolvedTs { | ||
*resolvedTs = meta.ResolvedTs | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.