Skip to content
Snippets Groups Projects
Commit 90be4422 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

vinyl: use xalloc for vylog allocations

The vinyl metadata log processor allocates its internal objects either
from malloc or region, neither of which should fail for small
allocations. Let's switch to xalloc to simplify the code. A good thing
about this change is that now we can ignore all errors raised by
vy_log_record_decode() and vy_recovery_process_record() if the
force_recovery flag is set (see the next commit).

Needed for #10292

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring

(cherry picked from commit b6f015e98b7c30861dc33032ba7eca47de0cc198)
parent 09ddc82e
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