Skip to content
Snippets Groups Projects
Commit 879b7026 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Fix a bug with a crash when slab alloc arena is full.

When the slab alloc arena is fully used, and we try to
truncate a space, we could crash, since

a) we never check return value of salloc()
b) we used to salloc() an iterator for truncate(), and
it would return NULL, and we would try to access it without a check.

The fix is:

- to throw exceptions directly from salloc()
- to not use salloc() for iterators, since we still should
be able to truncate a namespace when the slab alloc arena is
full.
parent 59d244fc
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