Issue 8502 - mdb_cursor_count() == EINVAL for empty DB
Summary: mdb_cursor_count() == EINVAL for empty DB
Status: UNCONFIRMED
Alias: None
Product: LMDB
Classification: Unclassified
Component: liblmdb (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-13 07:31 UTC by Hallvard Furuseth
Modified: 2020-03-22 23:22 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 Hallvard Furuseth 2016-09-13 07:31:45 UTC
Full_Name: Hallvard B Furuseth
Version: mdb.master, 26e226b2a8cdba4208eabca394537900c4eda3b3
OS: 
URL: 
Submission from: (NULL) (81.191.45.31)
Submitted by: hallvard


mdb_cursor_count() has code to return MDB_NOTFOUND if !mc_snum,
but it comes after if (! ... C_INITIALIZED) return EINVAL.
Comment 1 Quanah Gibson-Mount 2017-03-20 23:35:04 UTC
moved from Incoming to Software Bugs