Skip to content

Commit

Permalink
rescue attempt to get backlog from remote server, it will allow to ma…
Browse files Browse the repository at this point in the history
…nage subscription screen even if remote db is offline

https://bugzilla.redhat.com/show_bug.cgi?id=1533958
  • Loading branch information
yrudman committed Jan 25, 2018
1 parent fde3d11 commit f40c043
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/pglogical_subscription.rb
Expand Up @@ -102,6 +102,9 @@ def validate(new_connection_params = {})

def backlog
connection.xlog_location_diff(remote_node_lsn, remote_replication_lsn)
rescue PG::Error => e
_log.error(e.message)
nil
end

# translate the output from the pglogical stored proc to our object columns
Expand Down

0 comments on commit f40c043

Please sign in to comment.