
Added depth level 0 for each cluster node, this way the algorithm for root master selection will the same as in mysql replication: the root master is server at lowest replication depth with MASTER bit set Here for Galera we assume all the servers are at the same level, that’s 0