Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Simple careful mode for working with corrupted DB #223

Open
erthink opened this issue Jul 21, 2021 · 1 comment
Open

Simple careful mode for working with corrupted DB #223

erthink opened this issue Jul 21, 2021 · 1 comment
Assignees

Comments

@erthink
Copy link
Owner

erthink commented Jul 21, 2021

Add MDBX_CAREFUL environment flag which engages additional checks and turns on calling mdbx_page_check() for each page fetched to a cursor stack.

This also allows us to move some of the checks that are currently performed in normal mode and which are disengageable by the MDBX_DISABLE_PAGECHECKS build option, under the control of this flag. Ideally, it is desirable to get rid of the MDBX_DISABLE_PAGECHECKS option altogether.

Next, MDBX_CAREFUL should be always engaged by all mdbx-tools, especially by mdbx_chk and by mdbx_dump with -r option (recovery).

@erthink
Copy link
Owner Author

erthink commented Jul 21, 2021

Related to #217.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant