Skip to content
Snippets Groups Projects
Commit 8d880f6a authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Roman Tsisyk
Browse files

xlog: introduce helpers to check cursor state

It isn't a good practice to access xlog_cursor::state directly, because
it may include implementation-specific states, e.g. we might want to
differentiate CLOSED_AFTER_EOF and CLOSED_WITHOUT_EOF or CLOSED and
NOT_YET_OPENED (see the next patch). Let's introduce convenient helpers
to check if a cursor is open and if it reached EOF and use them outside
xlog.c.

Needed for #2768
parent 47c2fe45
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