mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Previously the code assumed repmgr node IDs to be sequential, which is not guaranteed to be the case. With a non-sequential list of node IDs, an incorrect node id would be displayed, and memory accessed beyond the bounds of the matrix array. The refactored code is considerably less elegant than the original but will correctly handle a non-sequential sequence of node IDs.
4.7 KiB
4.7 KiB