We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca6914 commit 3dd7da0Copy full SHA for 3dd7da0
pymysqlreplication/gtid.py
@@ -307,6 +307,7 @@ def _to_gtid(element):
307
self.gtids = [Gtid(x.strip(' \n')) for x in gtid_set.split(',')]
308
309
def merge_gtid(self, gtid):
310
+ """Insert a Gtid in current GtidSet."""
311
new_gtids = []
312
for existing in self.gtids:
313
if existing.sid == gtid.sid:
@@ -319,6 +320,8 @@ def merge_gtid(self, gtid):
319
320
321
def __contains__(self, other):
322
"""
323
+ Test if self contains other, could be a GtidSet or a Gtid.
324
+
325
Raises:
326
- NotImplementedError other is not a GtidSet neither a Gtid,
327
please convert it first to one of them
0 commit comments