mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
Use 100 as the default priority; 0 or less means node will never be promoted
This commit is contained in:
@@ -1065,7 +1065,8 @@ do_master_failover(void)
|
||||
" FROM %s.repl_nodes "
|
||||
" WHERE cluster = '%s' "
|
||||
" AND active IS TRUE "
|
||||
" ORDER BY priority, id "
|
||||
" AND priority > 0 "
|
||||
" ORDER BY priority DESC, id "
|
||||
" LIMIT %i ",
|
||||
get_repmgr_schema_quoted(my_local_conn),
|
||||
local_options.cluster_name,
|
||||
|
||||
Reference in New Issue
Block a user