mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-31 11:08:22 +08:00
mdbx: allow predefine/customise MDBX_LOCK_SUFFIX
, MDBX_DATANAME
, MDBX_LOCKNAME
.
This commit is contained in:
parent
55d3783699
commit
7b735c272d
6
mdbx.h
6
mdbx.h
@ -824,15 +824,21 @@ enum MDBX_constants {
|
|||||||
/* THE FILES *******************************************************************
|
/* THE FILES *******************************************************************
|
||||||
* At the file system level, the environment corresponds to a pair of files. */
|
* At the file system level, the environment corresponds to a pair of files. */
|
||||||
|
|
||||||
|
#ifndef MDBX_LOCKNAME
|
||||||
/** \brief The name of the lock file in the environment
|
/** \brief The name of the lock file in the environment
|
||||||
* without using \ref MDBX_NOSUBDIR */
|
* without using \ref MDBX_NOSUBDIR */
|
||||||
#define MDBX_LOCKNAME "/mdbx.lck"
|
#define MDBX_LOCKNAME "/mdbx.lck"
|
||||||
|
#endif
|
||||||
|
#ifndef MDBX_DATANAME
|
||||||
/** \brief The name of the data file in the environment
|
/** \brief The name of the data file in the environment
|
||||||
* without using \ref MDBX_NOSUBDIR */
|
* without using \ref MDBX_NOSUBDIR */
|
||||||
#define MDBX_DATANAME "/mdbx.dat"
|
#define MDBX_DATANAME "/mdbx.dat"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MDBX_LOCK_SUFFIX
|
||||||
/** \brief The suffix of the lock file when \ref MDBX_NOSUBDIR is used */
|
/** \brief The suffix of the lock file when \ref MDBX_NOSUBDIR is used */
|
||||||
#define MDBX_LOCK_SUFFIX "-lck"
|
#define MDBX_LOCK_SUFFIX "-lck"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* DEBUG & LOGGING ************************************************************/
|
/* DEBUG & LOGGING ************************************************************/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user