mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
standby register: ensure location field is compared during record check
This commit is contained in:
@@ -2035,6 +2035,9 @@ do_standby_register(void)
|
|||||||
if (node_record_on_standby.priority != node_record_on_primary.priority)
|
if (node_record_on_standby.priority != node_record_on_primary.priority)
|
||||||
records_match = false;
|
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)
|
if (node_record_on_standby.active != node_record_on_primary.active)
|
||||||
records_match = false;
|
records_match = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user