Bug #75160 purge_logs_after_lock_index_before_thread_count in release builds?
Submitted: 10 Dec 2014 10:57 Modified: 10 Dec 2014 12:33
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:5.5.41 OS:Any
Assigned to: CPU Architecture:Any
Tags: debug_sync

[10 Dec 2014 10:57] Laurynas Biveinis
Description:
A typo in new-in-5.5.41 code, log_in_use in sql_repl.cc:

-  DEBUG_SYNC(current_thd,"purge_logs_after_lock_index_before_thread_count");
+#ifndef BDUG_OFF
+  if (current_thd)
+    DEBUG_SYNC(current_thd,"purge_logs_after_lock_index_before_thread_count");
+#endif

How to repeat:
See above

Suggested fix:
s/BDUG_OFF/DBUG_OFF
[10 Dec 2014 12:33] MySQL Verification Team
Hello Laurynas Biveinis,
 
Thank you for the bug report.

Thanks,
Umesh
[10 Dec 2014 12:35] MySQL Verification Team
// from latest git source

[ushastry@localhost mysql-5.5]$ git log -1
commit 4e060e8a6583d531488265ce6fb0b2765f06f4bd
Merge: 7b9d91c acc23db
Author: Daniel Fischer <daniel.fischer@oracle.com>
Date:   Fri Nov 28 10:26:38 2014 +0100

    Merge branch 'mysql-5.5.41-release' into mysql-5.5

//

/data/work/mysql-5.5/sql/sql_repl.cc:
  249    THD *tmp;
  250    bool result = 0;
  251: #ifndef BDUG_OFF
  252    if (current_thd)
  253      DEBUG_SYNC(current_thd,"purge_logs_after_lock_index_before_thread_count");