This repository has been archived by the owner on Sep 22, 2022. It is now read-only.
Recursive use of SRW-lock on Windows cause by MDBX_NOTLS
option.
#203
Labels
MDBX_NOTLS
option.
#203
Windows is unable to extend or shrink mapped region without closing/unmap it.
So in Windows, a SRW-lock is used to protect threads with a read transaction from accessing a temporary unmapped region during it shrink or expand.
However, with
MDBX_NOTLS
option transactions could be used from other threads and the same thread could start more than one read transaction.Thus this causes recursive acquiring the same SRW-lock by the same thread.
This should be fixed, or at least documented:
MDBX_NOTLS
.The text was updated successfully, but these errors were encountered: