Skip to content

Commit

Permalink
Restore conns on DB first (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
shayonj authored Nov 22, 2024
1 parent b42b3fb commit 5947232
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
pg_easy_replicate (0.3.6)
pg_easy_replicate (0.3.7)
ougai (~> 2.0.0)
pg (~> 1.5.3)
pg_query (~> 5.1.0)
Expand Down
10 changes: 5 additions & 5 deletions lib/pg_easy_replicate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ def cleanup(options)
logger.info("Dropping groups table")
Group.drop
end,
-> do
if options[:restore_connection_on_source_db]
restore_connections_on_source_db
end
end,
-> do
if options[:everything]
logger.info("Dropping schema")
Expand Down Expand Up @@ -213,11 +218,6 @@ def cleanup(options)
end
end
end,
-> do
if options[:restore_connection_on_source_db]
restore_connections_on_source_db
end
end,
]

cleanup_steps.each do |step|
Expand Down
2 changes: 1 addition & 1 deletion lib/pg_easy_replicate/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module PgEasyReplicate
VERSION = "0.3.6"
VERSION = "0.3.7"
end

0 comments on commit 5947232

Please sign in to comment.