Remove unused argument

pull/15676/head
Alberto Miedes Garcés 4 years ago
parent 2ce360f4ac
commit 1b48423e71

@ -404,7 +404,7 @@ module CartoDB
def run_file_restore_postgres(file, sections = nil)
file_path = "#{@path}#{file}"
command = "#{pg_restore_bin_path(file_path)} -e --verbose -j4 --disable-triggers -Fc #{file_path} #{conn_string(
command = "#{pg_restore_bin_path} -e --verbose -j4 --disable-triggers -Fc #{file_path} #{conn_string(
@config[:dbuser],
@target_dbhost,
@config[:user_dbport],
@ -456,7 +456,7 @@ module CartoDB
def toc_file(file)
toc_file = "#{@path}user_#{@target_username}.list"
command = "#{pg_restore_bin_path(file)} -l #{file} --file='#{toc_file}'"
command = "#{pg_restore_bin_path} -l #{file} --file='#{toc_file}'"
run_command(command)
clean_toc_file(toc_file)
toc_file
@ -741,8 +741,8 @@ module CartoDB
importjob_logger.info(@import_log.to_json)
end
def pg_restore_bin_path(dump)
get_pg_restore_bin_path(superuser_pg_conn, dump)
def pg_restore_bin_path
get_pg_restore_bin_path(superuser_pg_conn)
end
def target_dbname

@ -89,7 +89,7 @@ module CartoDB
Cartodb.get_config(:user_migrator, 'pg_dump_bin_path', bin_version) || 'pg_dump'
end
def get_pg_restore_bin_path(conn, dump_name = nil)
def get_pg_restore_bin_path(conn)
bin_version = get_database_version_for_binaries(conn)
Cartodb.get_config(:user_migrator, 'pg_restore_bin_path', bin_version) || 'pg_restore'
end

Loading…
Cancel
Save