Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3a9276ba
Commit
3a9276ba
authored
Sep 22, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sanitize tokudb locking macros
parent
a4131c51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
storage/tokudb/hatoku_defines.h
storage/tokudb/hatoku_defines.h
+8
-8
No files found.
storage/tokudb/hatoku_defines.h
View file @
3a9276ba
...
...
@@ -290,23 +290,23 @@ inline uint tokudb_uint3korr(const uchar *a) {
typedef
unsigned
int
pfs_key_t
;
#if defined(SAFE_MUTEX) || defined(HAVE_PSI_MUTEX_INTERFACE)
#define mutex_t_lock(M)
M
.lock(__FILE__, __LINE__)
#define mutex_t_lock(M)
(M)
.lock(__FILE__, __LINE__)
#else // SAFE_MUTEX || HAVE_PSI_MUTEX_INTERFACE
#define mutex_t_lock(M)
M
.lock()
#define mutex_t_lock(M)
(M)
.lock()
#endif // SAFE_MUTEX || HAVE_PSI_MUTEX_INTERFACE
#if defined(SAFE_MUTEX)
#define mutex_t_unlock(M)
M
.unlock(__FILE__, __LINE__)
#define mutex_t_unlock(M)
(M)
.unlock(__FILE__, __LINE__)
#else // SAFE_MUTEX
#define mutex_t_unlock(M)
M
.unlock()
#define mutex_t_unlock(M)
(M)
.unlock()
#endif // SAFE_MUTEX
#if defined(HAVE_PSI_RWLOCK_INTERFACE)
#define rwlock_t_lock_read(M)
M
.lock_read(__FILE__, __LINE__)
#define rwlock_t_lock_write(M)
M
.lock_write(__FILE__, __LINE__)
#define rwlock_t_lock_read(M)
(M)
.lock_read(__FILE__, __LINE__)
#define rwlock_t_lock_write(M)
(M)
.lock_write(__FILE__, __LINE__)
#else // HAVE_PSI_RWLOCK_INTERFACE
#define rwlock_t_lock_read(M)
M
.lock_read()
#define rwlock_t_lock_write(M)
M
.lock_write()
#define rwlock_t_lock_read(M)
(M)
.lock_read()
#define rwlock_t_lock_write(M)
(M)
.lock_write()
#endif // HAVE_PSI_RWLOCK_INTERFACE
#endif // _HATOKU_DEFINES_H
Write
Preview
Markdown
is supported
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