Comments updated in get_root_master
Comments updated in get_root_master
This commit is contained in:
@ -888,11 +888,11 @@ static uint8_t getCapabilities(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/********************************
|
/********************************
|
||||||
* This routine return the root master server from MySQL replication tree
|
* This routine returns the root master server from MySQL replication tree
|
||||||
* Get the root Master rule:
|
* Get the root Master rule:
|
||||||
*
|
*
|
||||||
* find server(s) with lowest replication depth level
|
* find server with the lowest replication depth level
|
||||||
* AND check for SERVER_MASTER bitvalue in those servers
|
* and the SERVER_MASTER bitval
|
||||||
* Servers are checked even if they are in 'maintenance'
|
* Servers are checked even if they are in 'maintenance'
|
||||||
*
|
*
|
||||||
* @param servers The list of servers
|
* @param servers The list of servers
|
||||||
|
@ -3507,13 +3507,12 @@ static bool prep_stmt_drop(
|
|||||||
#endif /*< PREP_STMT_CACHING */
|
#endif /*< PREP_STMT_CACHING */
|
||||||
|
|
||||||
/********************************
|
/********************************
|
||||||
* This routine return the root master server from MySQL replication tree
|
* This routine returns the root master server from MySQL replication tree
|
||||||
* Get the root Master rule:
|
* Get the root Master rule:
|
||||||
*
|
*
|
||||||
* (1) find server(s) with lowest replication depth level
|
* find server with the lowest replication depth level
|
||||||
* (2) check for SERVER_MASTER bitvalue in those servers
|
* and the SERVER_MASTER bitval
|
||||||
* Servers are checked even if they are in 'maintenance'
|
* Servers are checked even if they are in 'maintenance'
|
||||||
* SERVER_IS_DOWN is the only status to skip.
|
|
||||||
*
|
*
|
||||||
* @param servers The list of servers
|
* @param servers The list of servers
|
||||||
* @param The number of servers
|
* @param The number of servers
|
||||||
|
Reference in New Issue
Block a user