Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
852ac0e3
Commit
852ac0e3
authored
Aug 07, 2011
by
Howard Chu
Browse files
More sub-db stuff
parent
a687f2dc
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/mdb.c
View file @
852ac0e3
This diff is collapsed.
Click to expand it.
libraries/libmdb/mdb.h
View file @
852ac0e3
...
...
@@ -39,12 +39,14 @@ typedef enum MDB_cursor_op { /* cursor operations */
/* DB flags */
#define MDB_REVERSEKEY 0x02
/* use reverse string keys */
#define MDB_DUPSORT 0x04
/* use sorted duplicates */
#define MDB_NOSYNC 0x10000
/* don't fsync after commit */
#define MDB_RDONLY 0x20000
/* read only */
#define MDB_CREATE 0x40000
/* create if not present */
/* environment flags */
#define MDB_FIXEDMAP 0x01
/* mmap at a fixed address */
#define MDB_NOSYNC 0x10000
/* don't fsync after commit */
#define MDB_RDONLY 0x20000
/* read only */
/* DB or env flags */
#define MDB_CREATE 0x40000
/* create if not present */
typedef
struct
MDB_stat
{
unsigned
int
ms_psize
;
...
...
@@ -64,6 +66,7 @@ int mdbenv_get_path(MDB_env *env, const char **path);
int
mdbenv_set_mapsize
(
MDB_env
*
env
,
size_t
size
);
int
mdbenv_set_maxreaders
(
MDB_env
*
env
,
int
readers
);
int
mdbenv_get_maxreaders
(
MDB_env
*
env
,
int
*
readers
);
int
mdbenv_set_maxdbs
(
MDB_env
*
env
,
int
dbs
);
int
mdbenv_sync
(
MDB_env
*
env
);
int
mdb_txn_begin
(
MDB_env
*
env
,
int
rdonly
,
MDB_txn
**
txn
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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