Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
c7da506d
Commit
c7da506d
authored
Mar 09, 2012
by
Hallvard Furuseth
Browse files
Fix MDB_txninfo.mt2 padding on Windows/Apple
parent
c7fe1f46
Changes
1
Show whitespace changes
Inline
Side-by-side
libraries/libmdb/mdb.c
View file @
c7da506d
...
...
@@ -202,6 +202,8 @@
#if defined(_WIN32) || defined(__APPLE__)
#define MNAME_LEN 32
#else
#define MNAME_LEN (sizeof(pthread_mutex_t))
#endif
/** @} */
...
...
@@ -543,7 +545,7 @@ typedef struct MDB_txninfo {
pthread_mutex_t
mt2_wmutex
;
#define mti_wmutex mt2.mt2_wmutex
#endif
char
pad
[(
sizeof
(
pthread_mutex_t
)
+
CACHELINE
-
1
)
&
~
(
CACHELINE
-
1
)];
char
pad
[(
MNAME_LEN
+
CACHELINE
-
1
)
&
~
(
CACHELINE
-
1
)];
}
mt2
;
MDB_reader
mti_readers
[
1
];
}
MDB_txninfo
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment