]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: orphan-list timestamp fix 35736/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 23 Jun 2020 21:05:59 +0000 (17:05 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 24 Jun 2020 15:40:06 +0000 (11:40 -0400)
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 <ivancich@redhat.com>
src/rgw/rgw-orphan-list

index 5af5282e03761ad2233eae084b452d0794cd03d8..9219486a71bf0faf1f32b0ff118b5d8c1e0c7ba5 100755 (executable)
@@ -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"