mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-17 17:48:20 -05:00
Fix MDB_txninfo.mt2 padding on Windows/Apple
This commit is contained in:
parent
c7fe1f466e
commit
c7da506dd2
1 changed files with 3 additions and 1 deletions
|
|
@ -202,6 +202,8 @@
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__APPLE__)
|
#if defined(_WIN32) || defined(__APPLE__)
|
||||||
#define MNAME_LEN 32
|
#define MNAME_LEN 32
|
||||||
|
#else
|
||||||
|
#define MNAME_LEN (sizeof(pthread_mutex_t))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
@ -543,7 +545,7 @@ typedef struct MDB_txninfo {
|
||||||
pthread_mutex_t mt2_wmutex;
|
pthread_mutex_t mt2_wmutex;
|
||||||
#define mti_wmutex mt2.mt2_wmutex
|
#define mti_wmutex mt2.mt2_wmutex
|
||||||
#endif
|
#endif
|
||||||
char pad[(sizeof(pthread_mutex_t)+CACHELINE-1) & ~(CACHELINE-1)];
|
char pad[(MNAME_LEN+CACHELINE-1) & ~(CACHELINE-1)];
|
||||||
} mt2;
|
} mt2;
|
||||||
MDB_reader mti_readers[1];
|
MDB_reader mti_readers[1];
|
||||||
} MDB_txninfo;
|
} MDB_txninfo;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue