https://bugs.openldap.org/show_bug.cgi?id=9297
--- Comment #7 from Howard Chu hyc@openldap.org --- (In reply to Konstantin Andreev from comment #6)
(In reply to Howard Chu from comment #5)
cursor_get may return EINVAL when given invalid parameters or for other misuses of its API. back-mdb never misuses the API. Therefore, your concern here is invalid.
Are I/O errors impossible during mdb_cursor_get()?
By design, yes. There are no syscalls in any read paths in LMDB code, so there are no functions that can return any I/O error status result. Any actual I/O errors occurring during a pagefault would cause a signal instead, not a return code.