]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
log: fix timestap precision of log can't set to millisecond. 36048/head
authorIvanGuan <yunfei.guan@xtaotech.com>
Wed, 4 Mar 2020 13:04:03 +0000 (21:04 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 11 Jul 2020 08:51:01 +0000 (10:51 +0200)
commitbdcce088e42bb4791d469049568a993a635280ce
tree1eb3c299e86044c186eb2daf678856333f5ee90a
parent690c7ca1a27b11ba119fbc95e96319b1f3233753
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