Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Lowden
OpenLDAP
Commits
caca4d8b
Commit
caca4d8b
authored
9 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Use MDB_USE_ROBUST not MDB_NO_ROBUST
parent
447f5527
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/liblmdb/Makefile
+1
-1
1 addition, 1 deletion
libraries/liblmdb/Makefile
libraries/liblmdb/mdb.c
+9
-9
9 additions, 9 deletions
libraries/liblmdb/mdb.c
with
10 additions
and
10 deletions
libraries/liblmdb/Makefile
+
1
−
1
View file @
caca4d8b
...
...
@@ -13,7 +13,7 @@
# - MDB_FDATASYNC
# - MDB_FDATASYNC_WORKS
# - MDB_USE_PWRITEV
# - MDB_
NO
_ROBUST
# - MDB_
USE
_ROBUST
#
# There may be other macros in mdb.c of interest. You should
# read mdb.c before changing any of them.
...
...
This diff is collapsed.
Click to expand it.
libraries/liblmdb/mdb.c
+
9
−
9
View file @
caca4d8b
...
...
@@ -238,25 +238,25 @@ typedef SSIZE_T ssize_t;
#define MDB_OWNERDEAD EOWNERDEAD
/**< #LOCK_MUTEX0() result if dead owner */
#endif
/* Android currently lacks Robust Mutex support */
#if defined(ANDROID) && defined(MDB_USE_POSIX_MUTEX)
#define MDB_NO_ROBUST 1
#endif
/** Some platforms define the EOWNERDEAD error code
* even though they don't support Robust Mutexes.
* Compile with -DMDB_
NO
_ROBUST, or use some other
* Compile with -DMDB_
USE
_ROBUST
=0
, or use some other
* mechanism like -DMDB_USE_SYSV_SEM instead of
* -DMDB_USE_POSIX_MUTEX. (SysV semaphores are
* also Robust, but some systems don't support them
* either.)
*/
#ifndef MDB_NO_ROBUST
#define MDB_NO_ROBUST 0
#ifndef MDB_USE_ROBUST
/* Android currently lacks Robust Mutex support */
#if defined(ANDROID) && defined(MDB_USE_POSIX_MUTEX) && !defined(MDB_USE_ROBUST)
#define MDB_USE_ROBUST 0
#else
#define MDB_USE_ROBUST 1
#endif
#endif
/* MDB_USE_ROBUST */
#if defined(MDB_OWNERDEAD) &&
!(
MDB_
NO
_ROBUST
)
#if defined(MDB_OWNERDEAD) && MDB_
USE
_ROBUST
#define MDB_ROBUST_SUPPORTED 1
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment