From: J. Eric Ivancich Date: Tue, 23 Jun 2020 21:05:59 +0000 (-0400) Subject: rgw: orphan-list timestamp fix X-Git-Tag: v14.2.11~59^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=516189efe6f60ca642c856e840b626929cfff596;p=ceph.git rgw: orphan-list timestamp fix When creating intermediate and output files, the rgw-orphan-list script uses a timestamp using the `date` command. The hour was inserted with "%k" but that padds with a space rather than a zero. So that's changed to "%H". Signed-off-by: J. Eric Ivancich (cherry picked from commit b1daf30d61989d0813ea73ac19f36b4de6abf13d) --- diff --git a/src/rgw/rgw-orphan-list b/src/rgw/rgw-orphan-list index 5af5282e037..9219486a71b 100755 --- a/src/rgw/rgw-orphan-list +++ b/src/rgw/rgw-orphan-list @@ -8,7 +8,7 @@ export LANG=C out_dir="." temp_file=/tmp/temp.$$ -timestamp=$(date -u +%Y%m%d%k%M) +timestamp=$(date -u +%Y%m%d%H%M) lspools_err="${out_dir}/lspools-${timestamp}.error" rados_out="${out_dir}/rados-${timestamp}.intermediate" rados_err="${out_dir}/rados-${timestamp}.error"