Comments updated in get_root_master

Comments updated in get_root_master
This commit is contained in:
MassimilianoPinto
2014-07-01 16:03:22 +02:00
parent 248b479bb6
commit e586efcaae
2 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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