Skip to content

Commit

Permalink
fix enabling Unified Sorter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzix committed May 12, 2021
1 parent 943de6b commit 7f645cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cdc/model/changefeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (info *ChangeFeedInfo) Clone() (*ChangeFeedInfo, error) {
func (info *ChangeFeedInfo) VerifyAndFix() error {
defaultConfig := config.GetDefaultReplicaConfig()
if info.Engine == "" {
info.Engine = SortInMemory
info.Engine = SortUnified
}
if info.Config.Filter == nil {
info.Config.Filter = defaultConfig.Filter
Expand Down
2 changes: 1 addition & 1 deletion cdc/model/changefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (s *configSuite) TestVerifyAndFix(c *check.C) {

err := info.VerifyAndFix()
c.Assert(err, check.IsNil)
c.Assert(info.Engine, check.Equals, SortInMemory)
c.Assert(info.Engine, check.Equals, SortUnified)

marshalConfig1, err := info.Config.Marshal()
c.Assert(err, check.IsNil)
Expand Down

0 comments on commit 7f645cd

Please sign in to comment.