Skip to content

Commit b401eea

Browse files
committed
Set _client_role attribute for binlogsyncer
1 parent 81fc0bf commit b401eea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

replication/binlogsyncer.go

+1
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ func (b *BinlogSyncer) newConnection(ctx context.Context) (*client.Conn, error)
891891
return client.ConnectWithDialer(timeoutCtx, "", addr, b.cfg.User, b.cfg.Password,
892892
"", b.cfg.Dialer, func(c *client.Conn) {
893893
c.SetTLSConfig(b.cfg.TLSConfig)
894+
c.SetAttributes(map[string]string{"_client_role": "binary_log_listener"})
894895
})
895896
}
896897

0 commit comments

Comments
 (0)