Skip to content

Commit d9b7748

Browse files
committed
Remove useless tests on recovery.conf after promotion
This closes gh issue #5.
1 parent 7dd0174 commit d9b7748

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

script/pgsqlms

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,9 +1393,7 @@ sub pgsql_promote {
13931393

13941394
$rc = pgsql_monitor();
13951395

1396-
# FIXME why search for a recovery.conf file at this point ?
1397-
# should this test be added to the monitor ?
1398-
if ( $rc == $OCF_RUNNING_MASTER and not -f "$pgdata/recovery.conf" ) {
1396+
if ( $rc == $OCF_RUNNING_MASTER ) {
13991397
ocf_log( 'info', 'pgsql_promote: promote complete' );
14001398

14011399
# Set the "primary_node" resource parameter to the promoted node name.

0 commit comments

Comments
 (0)