summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-22 06:07:52 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-22 06:07:52 +0000
commit62fcb9ffa9e40db6f34e7dd0d36804d73ef01435 (patch)
tree6d741f0fd158cf05d1c9457e383bb50f41fbacb8 /scripts
parent73edea02d353e8ed503922650a35f4a4e93fffdf (diff)
downloadgitlab-ce-62fcb9ffa9e40db6f34e7dd0d36804d73ef01435.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/insert-rspec-profiling-data2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/insert-rspec-profiling-data b/scripts/insert-rspec-profiling-data
index 88c9d8c12b1..3af5fe763a2 100755
--- a/scripts/insert-rspec-profiling-data
+++ b/scripts/insert-rspec-profiling-data
@@ -35,6 +35,8 @@ def insert_data(path)
files.each do |filename|
puts "#{Time.now} Inserting #{filename}..."
+ # Strip file of NULL bytes to ensure data gets inserted
+ system("sed", "-i", "-e", "s/\\x00//g", filename)
result = RspecProfiling::Collectors::PSQL::Result.copy_from(filename)
puts "#{Time.now} Inserted #{result.cmd_tuples} lines in #{filename}, DB response: #{result.cmd_status}"
end