Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix journal-reader example to point to the most recent entry #234

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

romainreignier
Copy link
Contributor

If next if called directly after seek tail, a random old entry is pointed.
See the implementation in journalctl:
https://github.com/systemd/systemd/blob/8389fd19d20370077f2d5601af0a089ec92ece05/src/journal/journalctl.c#L1292-L1299

And this related bug report: https://bugs.freedesktop.org/show_bug.cgi?id=64614

…a random one.

If next if called directly after seek tail, a random old entry is pointed.
See the implementation in journalctl:
https://github.com/systemd/systemd/blob/8389fd19d20370077f2d5601af0a089ec92ece05/src/journal/journalctl.c#L1292-L1299

And this related bug report: https://bugs.freedesktop.org/show_bug.cgi?id=64614
@codyps
Copy link
Owner

codyps commented Dec 9, 2021

bors r+

bors bot added a commit that referenced this pull request Dec 9, 2021
234: Fix journal-reader example to point to the most recent entry r=jmesmon a=romainreignier

If next if called directly after seek tail, a random old entry is pointed.
See the implementation in journalctl:
https://github.com/systemd/systemd/blob/8389fd19d20370077f2d5601af0a089ec92ece05/src/journal/journalctl.c#L1292-L1299

And this related bug report: https://bugs.freedesktop.org/show_bug.cgi?id=64614

Co-authored-by: Romain Reignier <rre@robopec.com>
@bors
Copy link
Contributor

bors bot commented Dec 9, 2021

Build failed:

@codyps codyps mentioned this pull request Dec 10, 2021
@codyps
Copy link
Owner

codyps commented Dec 10, 2021

bors r+

bors bot added a commit that referenced this pull request Dec 10, 2021
234: Fix journal-reader example to point to the most recent entry r=jmesmon a=romainreignier

If next if called directly after seek tail, a random old entry is pointed.
See the implementation in journalctl:
https://github.com/systemd/systemd/blob/8389fd19d20370077f2d5601af0a089ec92ece05/src/journal/journalctl.c#L1292-L1299

And this related bug report: https://bugs.freedesktop.org/show_bug.cgi?id=64614

236: fix build on docs.rs r=jmesmon a=jmesmon



Co-authored-by: Romain Reignier <rre@robopec.com>
Co-authored-by: Cody P Schafer <dev@codyps.com>
@bors
Copy link
Contributor

bors bot commented Dec 10, 2021

Build failed (retrying...):

@bors
Copy link
Contributor

bors bot commented Dec 10, 2021

Build succeeded:

@bors bors bot merged commit 7817db1 into codyps:master Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants