Skip to content

Commit

Permalink
Remove useless tests on recovery.conf after promotion
Browse files Browse the repository at this point in the history
This closes gh issue #5.
  • Loading branch information
ioguix committed Mar 1, 2016
1 parent 7dd0174 commit d9b7748
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions script/pgsqlms
Original file line number Diff line number Diff line change
Expand Up @@ -1393,9 +1393,7 @@ sub pgsql_promote {

$rc = pgsql_monitor();

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

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

0 comments on commit d9b7748

Please sign in to comment.