Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
e394e023
Commit
e394e023
authored
Jan 28, 2016
by
Hallvard Furuseth
Browse files
Fix MDB_VL32 mdb_cursor_count()/entrycount types
parent
3f62ddc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/lmdb.h
View file @
e394e023
...
...
@@ -1544,7 +1544,7 @@ int mdb_cursor_del(MDB_cursor *cursor, unsigned int flags);
* <li>EINVAL - cursor is not initialized, or an invalid parameter was specified.
* </ul>
*/
int
mdb_cursor_count
(
MDB_cursor
*
cursor
,
size_t
*
countp
);
int
mdb_cursor_count
(
MDB_cursor
*
cursor
,
mdb_
size_t
*
countp
);
/** @brief Compare two data items according to a particular database.
*
...
...
libraries/liblmdb/mdb.c
View file @
e394e023
...
...
@@ -1075,7 +1075,7 @@ typedef struct MDB_db {
pgno_t md_branch_pages; /**< number of internal pages */
pgno_t md_leaf_pages; /**< number of leaf pages */
pgno_t md_overflow_pages; /**< number of overflow pages */
pgno
_t
md_entries
;
/**< number of data items */
mdb_size
_t md_entries; /**< number of data items */
pgno_t md_root; /**< the root page of this tree */
} MDB_db;
...
...
@@ -7545,7 +7545,7 @@ new_sub:
*/
if (do_sub) {
int xflags, new_dupdata;
size_t
ecount
;
mdb_
size_t ecount;
put_sub:
xdata.mv_size = 0;
xdata.mv_data = "";
...
...
@@ -8260,7 +8260,7 @@ mdb_cursor_renew(MDB_txn *txn, MDB_cursor *mc)
/* Return the count of duplicate data items for the current key */
int
mdb_cursor_count
(
MDB_cursor
*
mc
,
size_t
*
countp
)
mdb_cursor_count(MDB_cursor *mc,
mdb_
size_t *countp)
{
MDB_node *leaf;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment