11/*****************************************************************************
22
3- Copyright (c) 1996, 2012 , Oracle and/or its affiliates. All Rights Reserved.
3+ Copyright (c) 1996, 2017 , Oracle and/or its affiliates. All Rights Reserved.
44
55This program is free software; you can redistribute it and/or modify it under
66the terms of the GNU General Public License as published by the Free Software
@@ -729,6 +729,7 @@ trx_purge_rseg_get_next_history_log(
729729mutex_exit (& (rseg -> mutex ));
730730mtr_commit (& mtr );
731731
732+ #ifdef UNIV_DEBUG
732733mutex_enter (& kernel_mutex );
733734
734735/* Add debug code to track history list corruption reported
@@ -742,18 +743,20 @@ trx_purge_rseg_get_next_history_log(
742743if (trx_sys -> rseg_history_len > 2000000 ) {
743744ut_print_timestamp (stderr );
744745fprintf (stderr ,
745- " InnoDB: Warning: purge reached the"
746+ " InnoDB: Warning: purge reached the"
746747" head of the history list,\n"
747748"InnoDB: but its length is still"
748- " reported as %lu! Make a detailed bug\n"
749- "InnoDB: report, and submit it"
750- " to http://bugs.mysql.com\n" ,
749+ " reported as %lu!."
750+ " This can happen becasue a long"
751+ " running transaction is withholding"
752+ " purging of undo logs or a read"
753+ " view is open. Please try to commit"
754+ " the long running transaction." ,
751755(ulong ) trx_sys -> rseg_history_len );
752- ut_ad (0 );
753756}
754757
755758mutex_exit (& kernel_mutex );
756-
759+ #endif
757760return ;
758761}
759762
0 commit comments