Skip to content

Commit

Permalink
* dbm/apr_dbm_lmdb.c (DEFAULT_ENV_FLAGS): Add MDB_NOLOCK to drop
Browse files Browse the repository at this point in the history
  locking since it is only partially safe against concurrency,
  and adds a performance overhead.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1915094 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
notroj committed Jan 5, 2024
1 parent 88610ab commit 8e68a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbm/apr_dbm_lmdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static apr_status_t set_error(apr_dbm_t *dbm, int dberr)
**
*/

#define DEFAULT_ENV_FLAGS (MDB_NOSUBDIR|MDB_NOSYNC)
#define DEFAULT_ENV_FLAGS (MDB_NOSUBDIR|MDB_NOSYNC|MDB_NOLOCK)

static apr_status_t vt_lmdb_open(apr_dbm_t **pdb, const char *pathname,
apr_int32_t mode, apr_fileperms_t perm,
Expand Down

0 comments on commit 8e68a77

Please sign in to comment.