Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/v2/changefeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -1541,12 +1541,12 @@ func getVerifiedTables(

func GetKeyspaceValueWithDefault(c *gin.Context) string {
if kerneltype.IsClassic() {
return common.DefaultKeyspaceNamme
return common.DefaultKeyspaceName
}

keyspace := c.Query(api.APIOpVarKeyspace)
if keyspace == "" {
keyspace = common.DefaultKeyspaceNamme
keyspace = common.DefaultKeyspaceName
}
return keyspace
}
2 changes: 1 addition & 1 deletion cmd/kafka-consumer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func newWriter(ctx context.Context, o *option) *writer {
log.Info("event router created", zap.Any("protocol", o.protocol),
zap.Any("topic", o.topic), zap.Any("dispatcherRules", o.sinkConfig.DispatchRules))

changefeedID := commonType.NewChangeFeedIDWithName("kafka-consumer", commonType.DefaultKeyspaceNamme)
changefeedID := commonType.NewChangeFeedIDWithName("kafka-consumer", commonType.DefaultKeyspaceName)
cfg := &config.ChangefeedConfig{
ChangefeedID: changefeedID,
SinkURI: o.downstreamURI,
Expand Down
2 changes: 1 addition & 1 deletion cmd/pulsar-consumer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func newWriter(ctx context.Context, o *option) *writer {
log.Info("event router created", zap.Any("protocol", o.protocol),
zap.Any("topic", o.topic), zap.Any("dispatcherRules", o.replicaConfig.Sink.DispatchRules))

changefeedID := commonType.NewChangeFeedIDWithName("pulsar-consumer", commonType.DefaultKeyspaceNamme)
changefeedID := commonType.NewChangeFeedIDWithName("pulsar-consumer", commonType.DefaultKeyspaceName)
cfg := &config.ChangefeedConfig{
ChangefeedID: changefeedID,
SinkURI: o.downstreamURI,
Expand Down
2 changes: 1 addition & 1 deletion cmd/storage-consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func newConsumer(ctx context.Context) (*consumer, error) {
SinkURI: downstreamURIStr,
SinkConfig: replicaConfig.Sink,
}
sink, err := sink.New(stdCtx, cfg, commonType.NewChangeFeedIDWithName(defaultChangefeedName, commonType.DefaultKeyspaceNamme))
sink, err := sink.New(stdCtx, cfg, commonType.NewChangeFeedIDWithName(defaultChangefeedName, commonType.DefaultKeyspaceName))
if err != nil {
log.Error("failed to create sink", zap.Error(err))
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion downstreamadapter/sink/redo/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ func getChangefeedMatcher(changeFeedID common.ChangeFeedID) string {
}

func getDeletedChangefeedMarker(changeFeedID common.ChangeFeedID) string {
if changeFeedID.Keyspace() == common.DefaultKeyspaceNamme {
if changeFeedID.Keyspace() == common.DefaultKeyspaceName {
return fmt.Sprintf("delete_%s", changeFeedID.Name())
}
return fmt.Sprintf("delete_%s_%s", changeFeedID.Keyspace(), changeFeedID.Name())
Expand Down
Loading