Issue 8876 - Problems About LMDB
Summary: Problems About LMDB
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-10 02:22 UTC by wisbyme@gmail.com
Modified: 2018-09-10 17:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description wisbyme@gmail.com 2018-07-10 02:22:12 UTC
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.

------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

Comment 1 Howard Chu 2018-07-10 14:28:26 UTC
wisbyme@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/

Comment 2 Howard Chu 2018-09-10 17:47:00 UTC
changed state Open to Closed