« Previous | Next » 

Revision 1ec34e26

ID1ec34e2636440202e89707cb896545a9e62f63e0
Parent 47387ccb
Child 368e95fd

Added by Apollon Oikonomopoulos about 10 years ago

query: fix detection of master in _GetNodeRole()

Commit 1c3231aa changed the invocation of _GetNodeRole() to pass the
master node by UUID and not by name, but didn't change the
implementation to compare the nodes by name. As a result, the master
node (which is also a master candidate) would always fall through to the
second option and be marked as 'C' instead as 'M'.

We fix this by modifying the implementation of _GetNodeRole() to perform
the comparison by UUID and also change the respective tests to test the
new API.

Signed-off-by: Apollon Oikonomopoulos <>
Signed-off-by: Klaus Aehlig <>
Reviewed-by: Klaus Aehlig <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences