1
0
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:
Monty
2020-08-20 19:33:33 +03:00
parent b1ba3a199c
commit 3ef65f2783
3 changed files with 9 additions and 4 deletions

View File

@@ -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;