standby register: ensure location field is compared during record check

This commit is contained in:
Ian Barwick
2020-05-21 14:35:03 +09:00
parent f05978e2e1
commit a0d3fae7ab

View File

@@ -2035,6 +2035,9 @@ do_standby_register(void)
if (node_record_on_standby.priority != node_record_on_primary.priority)
records_match = false;
if (strcmp(node_record_on_standby.location, node_record_on_primary.location) != 0)
records_match = false;
if (node_record_on_standby.active != node_record_on_primary.active)
records_match = false;