]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
log: fix timestap precision of log can't set to millisecond. 37659/head
authorIvanGuan <yunfei.guan@xtaotech.com>
Wed, 4 Mar 2020 13:04:03 +0000 (21:04 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 13 Oct 2020 18:04:56 +0000 (20:04 +0200)
commit447c6b7d165c76eb9c747eb91185813c92ae6721
treef3e75108c9e52399ca4d9d4717a6162364fdb4ec
parent182ca446efa421cedd7fb40b44c514cda4334738
log: fix timestap precision of log can't set to millisecond.

The option log_coarse_timestamps can be set to Log::clock
successfully,but the Log::clock has no effect on time accuracy
because the dout_impl really use is Entry::clock.So we should
set Entry::clock by log_coarse_timestamps option instead of
Log:clock.In addition, i think the Log::clock can be removed
because i didn't see what it was for.

Fixes: https://tracker.ceph.com/issues/44409
Signed-off-by: Guan yunfei <yunfei.guan@xtaotech.com>
(cherry picked from commit a5cceeac48066dc6b0b4a21133cfdcb920d159e8)
src/log/Entry.h
src/log/Log.cc
src/log/Log.h