]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
log: fix timestap precision of log can't set to millisecond. 33720/head
authorIvanGuan <yunfei.guan@xtaotech.com>
Wed, 4 Mar 2020 13:04:03 +0000 (21:04 +0800)
committerIvanGuan <yunfei.guan@xtaotech.com>
Wed, 4 Mar 2020 13:04:03 +0000 (21:04 +0800)
commita5cceeac48066dc6b0b4a21133cfdcb920d159e8
treeda3075aba6aa78c1afaa66da915dbbf4dc4ee29d
parent00af2eddf5fade81e4e14f0c5d7fab9191e2bd82
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>
src/log/Entry.h
src/log/Log.cc
src/log/Log.h