Well, yeah but it can be done differently. 'Executed_Gtid_Set' is retrieved via 'SHOW MASTER STATUS' as is 'File' (bin log file name). The alternative approach would be to 'SHOW MASTER STATUS' to test for the validity of 'Executed_Gtid_Set', then if valid, 'FLUSH BINARY LOGS' and 'SHOW MASTER STATUS' again to get the accurate/updated 'File'.
Well, yeah but it can be done differently. 'Executed_Gtid_Set' is retrieved via 'SHOW MASTER STATUS' as is 'File' (bin log file name). The alternative approach would be to 'SHOW MASTER STATUS' to test for the validity of 'Executed_ Gtid_Set' , then if valid, 'FLUSH BINARY LOGS' and 'SHOW MASTER STATUS' again to get the accurate/updated 'File'.