Skip to content

Commit 9cd4eeb

Browse files
authored
Refrain from reloading Postgres when we skip HBA editing anyways. (#588)
1 parent 959abdd commit 9cd4eeb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/bin/pg_autoctl/keeper.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,8 @@ keeper_update_group_hba(Keeper *keeper, NodeAddressArray *diffNodesArray)
15811581
* edited the HBA and it's going to take effect at next restart of
15821582
* Postgres, so we're good here.
15831583
*/
1584-
if (pg_setup_is_running(postgresSetup))
1584+
if (postgresSetup->hbaLevel > HBA_EDIT_SKIP &&
1585+
pg_setup_is_running(postgresSetup))
15851586
{
15861587
if (!pgsql_reload_conf(pgsql))
15871588
{

0 commit comments

Comments
 (0)