Skip to content

log: fix timestap precision of log can't set to millisecond.#33720

Merged
tchaikov merged 1 commit intoceph:masterfrom
yunfeiguan:wip-44409
Jun 9, 2020
Merged

log: fix timestap precision of log can't set to millisecond.#33720
tchaikov merged 1 commit intoceph:masterfrom
yunfeiguan:wip-44409

Conversation

@yunfeiguan
Copy link
Copy Markdown

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

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

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>
@stale
Copy link
Copy Markdown

stale bot commented May 4, 2020

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@stale stale bot added the stale label May 4, 2020
@smithfarm
Copy link
Copy Markdown
Contributor

@adamemerson Pinging for review

@stale stale bot removed the stale label May 13, 2020
@smithfarm
Copy link
Copy Markdown
Contributor

jenkins test make check

1 similar comment
@smithfarm
Copy link
Copy Markdown
Contributor

jenkins test make check

@smithfarm
Copy link
Copy Markdown
Contributor

@batrick This has been approved by @adamemerson and it just passed "make check" as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants