threefoldtech / 0-db

Fast write ahead persistent redis protocol key-value store
Apache License 2.0
39 stars 10 forks source link

sequential: segmentation fault on deletion in mixed mode #131

Closed maxux closed 2 years ago

maxux commented 2 years ago

In (forced) sequential mode, branches list are not set to index internally, lot of code rely on the fact that branches is set or not to know if it needs to use it or not.

In mixed mode, branches were always set and thus, some part of code (eg: deleting a key) rely on that, in mixed mode, when choosing sequential mode for the namespace, deleting a key crashed because of that.