]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/TestOSDScrub: fix mktime() error 40621/head
authorluo rixin <luorixin@huawei.com>
Thu, 20 Feb 2020 12:07:39 +0000 (20:07 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 6 Apr 2021 13:48:10 +0000 (21:48 +0800)
commit3f124f94894c93f8366819c518dc20ab4bf3b237
tree375df23df66bb600beb6895114ea6dbe9cf6983e
parent7e30d3900368dd84644823210d0bbe2609dba405
test/TestOSDScrub: fix mktime() error

The var tm tm isn't initialized, when the tm.tm_isdst is a
positive value, mktime(&tm) return -1 result in test failed
in ubuntu 19.10 for aarch64 GLIBC2.30.

Signed-off-by: luo rixin <luorixin@huawei.com>
(cherry picked from commit 4806fce7f46899499549d9235ca87625d806f2da)
src/test/osd/TestOSDScrub.cc