wisbyme(a)gmail.com wrote:
Full_Name: Daniel.L
Version: LMDB 0.9.70
OS: macOS or WIN10
URL:
ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (113.109.207.158)
Hello,
I found some problems about LMDB from github.
Some problems in windows, I have posted the code behind.
The same code in macOS, getting data often fails. It always returns
MDB_NOTFOUND.
But I can't find the reason at all, is it not available in macOS?
Thank you.
No idea what the below means. Learn to use git, learn to use diff.
------CODES
MODIFIED----------------------------------------------------------------------
typedef LONG NTSTATUS, *PNTSTATUS; /// LJJ added 2018.07.10
typedef NTSTATUS WINAPI NtCreateSectionFunc /// LJJ modified 2018.07.10
(OUT PHANDLE sh, IN ACCESS_MASK acc,
IN void * oa OPTIONAL,
IN PLARGE_INTEGER ms OPTIONAL,
IN ULONG pp, IN ULONG aa, IN HANDLE fh OPTIONAL);
static NtCreateSectionFunc *NtCreateSection;
typedef enum _SECTION_INHERIT {
ViewShare = 1,
ViewUnmap = 2
} SECTION_INHERIT;
typedef NTSTATUS WINAPI NtMapViewOfSectionFunc /// LJJ modified 2018.07.10
(IN PHANDLE sh, IN HANDLE ph,
IN OUT PVOID *addr, IN ULONG_PTR zbits,
IN SIZE_T cs, IN OUT PLARGE_INTEGER off OPTIONAL,
IN OUT PSIZE_T vs, IN SECTION_INHERIT ih,
IN ULONG at, IN ULONG pp);
static NtMapViewOfSectionFunc *NtMapViewOfSection; /// LJJ modified 2018.07.10
HMODULE h = GetModuleHandleA("NTDLL.DLL"); /// LJJ modified 2018.07.10
--
-- Howard Chu
CTO, Symas Corp.
http://www.symas.com
Director, Highland Sun
http://highlandsun.com/hyc/
Chief Architect, OpenLDAP
http://www.openldap.org/project/