[Date Prev][Date Next]
Re: (ITS#8192) liblmdb confuses Windows error code with errno values
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8192) liblmdb confuses Windows error code with errno values
- From: email@example.com
- Date: Wed, 08 Jul 2015 20:37:03 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
> On 08/07/15 20:29, firstname.lastname@example.org wrote:
>> Finally, I suggest we replace the explicit EIO/ENOSPC returns
>> with either a new MDB code or #define MDB_EIO EIO on Unix
>> and something else on Windows.
> I mean, without waiting for LMDB-1.*. They are fairly
> obscure errors, I doubt anyone is testing for them.
When there is a platform-specific error code that describes the situation, we
should use it. In particular, if the error code comes from an underlying
system call and accurately describes that failure, we should pass it through.
If the failure is LMDB-specific, and not related to any particular system
call, then we should define an MDB_* code for it.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/