Issue 7980 - LMDB added support for user context in compare function
Summary: LMDB added support for user context in compare function
Status: VERIFIED INVALID
Alias: None
Product: LMDB
Classification: Unclassified
Component: liblmdb (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
: 8124 8276 (view as issue list)
Depends on:
Blocks:
 
Reported: 2014-11-13 20:21 UTC by rouzier@gmail.com
Modified: 2021-06-02 15:04 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rouzier@gmail.com 2014-11-13 20:21:34 UTC
Full_Name: James Rouzier
Version: 2.4
OS: GNU/Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (192.222.129.11)


https://github.com/rouzier/openldap/commit/33f1dc8be4a8503e78930f130ff9c8e5aa9bfa7b.diff

I added support for user supplied context for lmdb in the compare functions.

This make it much easier to integrate with scripting languages.

--
The attached patch file is derived from OpenLDAP Software. All of the
modifications to OpenLDAP Software represented in the following
patch(es) were developed by James Rouzier <rouzier@gmail.com>.
I
have not assigned rights and/or interest in this work to any party.

I, James Rouzier, hereby place the following modifications to OpenLDAP Software
(and only these modifications) into the public domain. Hence, these
modifications may be freely used and/or redistributed for any purpose with or
without attribution and/or other notice.
--
Comment 1 Howard Chu 2021-06-02 13:19:48 UTC
Not needed. Pass additional state using the MDB_val *a pointer.
Comment 2 Howard Chu 2021-06-02 13:20:41 UTC
*** Issue 8124 has been marked as a duplicate of this issue. ***
Comment 3 Howard Chu 2021-06-02 13:26:13 UTC
*** Issue 8276 has been marked as a duplicate of this issue. ***