Skip to content
Snippets Groups Projects
Commit 7191a692 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

journal: make journal_write() set diag on error

It used to simply return -1 and set a diag only when OOM happened
inside.

The caller was forced either to ignore the result or set its own
diag regardless of what really happened.

The patch makes journal_write() set a correct diag error when it
returns -1. The only implementation to change was
wal_write_async(). The other implementations always return 0.

Part of #6027
parent b89c7cae
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment