mdbx: allow predefine/customise MDBX_LOCK_SUFFIX, MDBX_DATANAME, MDBX_LOCKNAME.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-06-25 22:14:06 +03:00
parent 55d3783699
commit 7b735c272d

6
mdbx.h
View File

@ -824,15 +824,21 @@ enum MDBX_constants {
/* THE 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
* without using \ref MDBX_NOSUBDIR */
#define MDBX_LOCKNAME "/mdbx.lck"
#endif
#ifndef MDBX_DATANAME
/** \brief The name of the data file in the environment
* without using \ref MDBX_NOSUBDIR */
#define MDBX_DATANAME "/mdbx.dat"
#endif
#ifndef MDBX_LOCK_SUFFIX
/** \brief The suffix of the lock file when \ref MDBX_NOSUBDIR is used */
#define MDBX_LOCK_SUFFIX "-lck"
#endif
/* DEBUG & LOGGING ************************************************************/