diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-11-15 01:47:32 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-12-02 02:26:41 +0300 |
commit | 81f061d5a4ebefefe0efbc3c1f28b86b665a2b92 (patch) | |
tree | 111530e8fa2da91ed277d10d0fd00c4a13c96597 | |
parent | 2b481e7b28114982e95af5ab17cdab2dc832bf78 (diff) |
Fix `ionice` prepend
-rw-r--r-- | lib/gitlab/background_migration/prepare_untracked_uploads.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/prepare_untracked_uploads.rb b/lib/gitlab/background_migration/prepare_untracked_uploads.rb index 11978b73a8a..6aba3011720 100644 --- a/lib/gitlab/background_migration/prepare_untracked_uploads.rb +++ b/lib/gitlab/background_migration/prepare_untracked_uploads.rb @@ -65,7 +65,7 @@ module Gitlab tmp_path = "#{UPLOAD_DIR}/tmp/*" cmd = %W[find #{search_dir} -type f ! ( -path #{hashed_path} -prune ) ! ( -path #{tmp_path} -prune ) -print0] - %w[ionice -c Idle] + cmd if ionice_is_available? + cmd = %w[ionice -c Idle] + cmd if ionice_is_available? cmd end |