@@ -27,6 +27,7 @@ import (
2727type ReplicaSourceInfo struct {
2828 Host string
2929 User string
30+ Ssl bool
3031 Password string
3132 Port uint16
3233 Uuid string
@@ -58,6 +59,12 @@ func ReplicaSourceInfoToRow(ctx *sql.Context, v *ReplicaSourceInfo) (sql.Row, er
5859 row [replicaSourceInfoTblColIndex_Connect_retry ] = v .ConnectRetryInterval
5960 row [replicaSourceInfoTblColIndex_Retry_count ] = v .ConnectRetryCount
6061
62+ if v .Ssl {
63+ row [replicaSourceInfoTblColIndex_Enabled_ssl ] = 1
64+ } else {
65+ row [replicaSourceInfoTblColIndex_Enabled_ssl ] = 0
66+ }
67+
6168 return row , nil
6269}
6370
@@ -66,9 +73,15 @@ func ReplicaSourceInfoFromRow(ctx *sql.Context, row sql.Row) (*ReplicaSourceInfo
6673 return nil , err
6774 }
6875
76+ ssl := false
77+ if row [replicaSourceInfoTblColIndex_Enabled_ssl ] == 1 {
78+ ssl = true
79+ }
80+
6981 return & ReplicaSourceInfo {
7082 Host : row [replicaSourceInfoTblColIndex_Host ].(string ),
7183 User : row [replicaSourceInfoTblColIndex_User_name ].(string ),
84+ Ssl : ssl ,
7285 Password : row [replicaSourceInfoTblColIndex_User_password ].(string ),
7386 Port : row [replicaSourceInfoTblColIndex_Port ].(uint16 ),
7487 Uuid : row [replicaSourceInfoTblColIndex_Uuid ].(string ),
@@ -79,6 +92,7 @@ func ReplicaSourceInfoFromRow(ctx *sql.Context, row sql.Row) (*ReplicaSourceInfo
7992
8093func ReplicaSourceInfoEquals (left , right * ReplicaSourceInfo ) bool {
8194 return left .User == right .User &&
95+ left .Ssl == right .Ssl &&
8296 left .Host == right .Host &&
8397 left .Port == right .Port &&
8498 left .Password == right .Password &&
0 commit comments