This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit a7eec047 authored by Michael Kozono's avatar Michael Kozono
Browse files

Use ionice absolute path

parent 55bbb34f348f
......@@ -80,14 +80,15 @@ def yield_paths_in_batches(stdout, batch_size, &block)
def build_find_command(search_dir)
cmd = %W[find #{search_dir} -type f ! ( -path #{EXCLUDED_HASHED_UPLOADS_PATH} -prune ) ! ( -path #{EXCLUDED_TMP_UPLOADS_PATH} -prune ) -print0]
cmd = %w[ionice -c Idle] + cmd if ionice_is_available?
ionice = which_ionice
cmd = %W[#{ionice} -c Idle] + cmd if ionice "PrepareUntrackedUploads find command: \"#{cmd.join(' ')}\""
def ionice_is_available?
def which_ionice
rescue StandardError
# In this case, returning false is relatively safe, even though it isn't very nice
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment