mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Added DBUG_PUSH_EMPTY and DBUG_POP_EMPTY to speed up DBUG
This commit is contained in:
@@ -233,7 +233,7 @@ int safe_mutex_lock(safe_mutex_t *mp, myf my_flags, const char *file,
|
||||
int error;
|
||||
DBUG_PRINT("mutex", ("%s (0x%lx) locking", mp->name ? mp->name : "Null",
|
||||
(ulong) mp));
|
||||
DBUG_PUSH("");
|
||||
DBUG_PUSH_EMPTY;
|
||||
|
||||
pthread_mutex_lock(&mp->global);
|
||||
if (!mp->file)
|
||||
@@ -395,7 +395,7 @@ int safe_mutex_lock(safe_mutex_t *mp, myf my_flags, const char *file,
|
||||
}
|
||||
|
||||
end:
|
||||
DBUG_POP();
|
||||
DBUG_POP_EMPTY;
|
||||
if (!error)
|
||||
DBUG_PRINT("mutex", ("%s (0x%lx) locked", mp->name, (ulong) mp));
|
||||
return error;
|
||||
|
Reference in New Issue
Block a user