Skip to content

Commit

Permalink
Disabled unused warnings (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakwc authored Jan 21, 2025
1 parent 752aea1 commit 2d91314
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions mysql_ch_replicator/pymysqlreplication/binlogstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def __connect_to_ctl(self):
self._ctl_connection = self.pymysql_wrapper(**self._ctl_connection_settings)
self._ctl_connection._get_dbms = self.__get_dbms
self.__connected_ctl = True
self.__check_optional_meta_data()
#self.__check_optional_meta_data()

def __checksum_enabled(self):
"""Return True if binlog-checksum = CRC32. Only for MySQL > 5.6"""
Expand Down Expand Up @@ -563,12 +563,13 @@ def __check_optional_meta_data(self):
cur.execute("SHOW VARIABLES LIKE 'BINLOG_ROW_METADATA';")
value = cur.fetchone()
if value is None: # BinLog Variable Not exist It means Not Supported Version
logging.log(
logging.WARN,
"""
Before using MARIADB 10.5.0 and MYSQL 8.0.14 versions,
use python-mysql-replication version Before 1.0 version """,
)
pass
# logging.log(
# logging.WARN,
# """
# Before using MARIADB 10.5.0 and MYSQL 8.0.14 versions,
# use python-mysql-replication version Before 1.0 version """,
# )
else:
value = value.get("Value", "")
if value.upper() != "FULL":
Expand Down

0 comments on commit 2d91314

Please sign in to comment.