From 893d927acd191d99558c3ac360485f48370cbbde Mon Sep 17 00:00:00 2001 From: Nick LaMuro Date: Thu, 28 Jun 2018 13:32:47 -0500 Subject: [PATCH] Fix bug with EvmDatabaseOps.dump The method `.backup` being called to PostgresAdmin was incorrect, and should have been `.backup_pg_dump` from the beginning. --- lib/evm_database_ops.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/evm_database_ops.rb b/lib/evm_database_ops.rb index 3eaaa7e02e6..eaf61c1ed5a 100644 --- a/lib/evm_database_ops.rb +++ b/lib/evm_database_ops.rb @@ -72,7 +72,7 @@ def self.dump(db_opts, connect_opts = {}) # won't hurt to do as a generic way to get a rough idea if we have enough # disk space or the appliance for the task. validate_free_space(database_opts) - PostgresAdmin.backup(database_opts) + PostgresAdmin.backup_pg_dump(database_opts) end _log.info("[#{merged_db_opts(db_opts)[:dbname]}] database has been dumped up to file: [#{uri}]") uri