mdbx: move MDBX_LOCK_SUFFIX to API defs.

This commit is contained in:
Leo Yuriev
2017-04-24 17:52:56 +03:00
parent 1b26de1f44
commit e98a1e5319
2 changed files with 16 additions and 15 deletions

7
mdbx.h
View File

@@ -95,6 +95,13 @@ extern "C" {
MDBX_VERFOO(MDBX_VERSION_MAJOR, MDBX_VERSION_MINOR, MDBX_VERSION_PATCH, \
MDBX_VERSION_DATE)
/* The name of the lock file in the DB environment */
#define MDBX_LOCKNAME "/mdbx.lck"
/* The name of the data file in the DB environment */
#define MDBX_DATANAME "/mdbx.dat"
/* The suffix of the lock file when no subdir is used */
#define MDBX_LOCK_SUFFIX "-lck"
/* Opaque structure for a database environment.
*
* A DB environment supports multiple databases, all residing in the same