Skip to content

Commit

Permalink
Fix binlog replication
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang01 committed Sep 12, 2024
1 parent e4ea17f commit 220605f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func registerReplicaController(provider *catalog.DatabaseProvider, engine *sqle.
replica := binlogreplication.MyBinlogReplicaController
replica.SetEngine(engine)

session := memory.NewSession(sql.NewBaseSession(), provider)
session := backend.NewSession(memory.NewSession(sql.NewBaseSession(), provider), provider, pool)
ctx := sql.NewContext(context.Background(), sql.WithSession(session))
ctx.SetCurrentDatabase("mysql")
replica.SetExecutionContext(ctx)
Expand Down

0 comments on commit 220605f

Please sign in to comment.