]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: orphan-list timestamp fix
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 23 Jun 2020 21:05:59 +0000 (17:05 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 15 Jul 2020 16:24:16 +0000 (12:24 -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>
(cherry picked from commit b1daf30d61989d0813ea73ac19f36b4de6abf13d)

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"