Merge "convert to type str to compare"
This commit is contained in:
commit
97e0a940df
@ -63,7 +63,7 @@ class MariaDBApp(mysql_service.BaseMySqlApp):
|
|||||||
gtid_executed = self._get_gtid_executed()
|
gtid_executed = self._get_gtid_executed()
|
||||||
for gtid_set in gtid_executed.split(','):
|
for gtid_set in gtid_executed.split(','):
|
||||||
uuid_set = gtid_set.split('-')
|
uuid_set = gtid_set.split('-')
|
||||||
if uuid_set[1] == master_UUID:
|
if str(uuid_set[1]) == str(master_UUID):
|
||||||
last_txn_id = uuid_set[-1]
|
last_txn_id = uuid_set[-1]
|
||||||
break
|
break
|
||||||
return master_UUID, int(last_txn_id)
|
return master_UUID, int(last_txn_id)
|
||||||
|
@ -50,7 +50,7 @@ class MySqlApp(service.BaseMySqlApp):
|
|||||||
gtid_executed = self._get_gtid_executed()
|
gtid_executed = self._get_gtid_executed()
|
||||||
for gtid_set in gtid_executed.split(','):
|
for gtid_set in gtid_executed.split(','):
|
||||||
uuid_set = gtid_set.split(':')
|
uuid_set = gtid_set.split(':')
|
||||||
if uuid_set[0] == master_UUID:
|
if str(uuid_set[0]) == str(master_UUID):
|
||||||
last_txn_id = uuid_set[-1].split('-')[-1]
|
last_txn_id = uuid_set[-1].split('-')[-1]
|
||||||
break
|
break
|
||||||
return master_UUID, int(last_txn_id)
|
return master_UUID, int(last_txn_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user