[MDEV-11713] Optimize DBUG_PRINT and introduce DBUG_LOG Created: 2017-01-03  Updated: 2017-02-16  Resolved: 2017-01-05

Status: Closed
Project: MariaDB Server
Component/s: Server, Storage Engine - InnoDB
Fix Version/s: 10.2.4

Type: Task Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-12072 Do not unnecessarily construct rec_pr... Closed
relates to MDEV-11684 post-10.1-merge fixes Closed

 Description   

MariaDB Server is unnecessarily evaluating the arguments of DBUG_PRINT() macros when the label is not defined.

The macro DBUG_LOG() for C++ operator<< output which was added for InnoDB diagnostics in MySQL 5.7 is missing from MariaDB. Unlike the MySQL 5.7 implementation, MariaDB will avoid allocating and initializing the output string when the label is not defined.



 Comments   
Comment by Marko Mäkelä [ 2017-01-03 ]

Please review the changes to dbug.c and my_dbug.h.

Comment by Jan Lindström (Inactive) [ 2017-01-05 ]

ok to push InnoDB part, server part need review from ~serg

Generated at Thu Feb 08 07:52:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.