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

Update URLs & readme #307

Merged
merged 27 commits into from
May 2, 2024
Merged

Update URLs & readme #307

merged 27 commits into from
May 2, 2024

Conversation

codyps
Copy link
Owner

@codyps codyps commented Apr 28, 2024

No description provided.

ALSchwalm and others added 10 commits January 11, 2024 21:54
In order to create a cursor, the journal must be at a valid entry. As
the docs say:

    Note that sd_journal_get_cursor() will not work before
    sd_journal_next(3) (or related call) has been called at least
    once, in order to position the read pointer at a valid entry.

The existing tests do this, but at least on recent versions of
systemd (255), calling sd_journal_next after a seek to tail does not
meet this requirement. If the journal is at the tail, subsequent nexts
will always stay a the abstract 'tail' position (analogous to
EOF), not at a valid entry. This causes cursor creation to fail.

A similar issue exists in the 'match' test. It seeks to tail and then
attempts to 'next' in a loop, but this will always be 'tail', so it
never sees the matching entry. In both cases, the fix is to 'previous'
after the seek to tail.
@codyps codyps enabled auto-merge May 2, 2024 05:55
@codyps codyps merged commit cca26b9 into master May 2, 2024
5 checks passed
@codyps codyps deleted the url branch May 2, 2024 06:21
@codyps codyps mentioned this pull request May 2, 2024
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