[MDEV-11798] gtid function BINLOG_GTID_POS Created: 2017-01-15 Updated: 2017-01-16 Resolved: 2017-01-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.2.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | jinlong.cai | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | replication | ||
| Environment: |
mariadb-10.2.3 |
||
| Description |
|
When we use BINLOG_GTID_POS to get gtid from binlog file/position ,it call the function to get gtid(in sql_repl.cc):
But ,the function gtid_state->load((const rpl_gtid *)NULL, 0) is always true (because count==0):
Why we need this ?? |
| Comments |
| Comment by jinlong.cai [ 2017-01-15 ] |
|
I think if you want reset binlog state,why you don't call reset function directly ?? |
| Comment by Elena Stepanova [ 2017-01-16 ] |
|
knielsen, would you want to handle this? |
| Comment by Kristian Nielsen [ 2017-01-16 ] |
|
My guess is that this is just for consistency with the It's just a matter of style. As you say, just calling reset() would be
|