@@ -2868,11 +2868,25 @@ innobase_shutdown_for_mysql(void)
2868
2868
#endif
2869
2869
pm_wrapper_free (gb_pmw);
2870
2870
#endif
2871
+
2871
2872
#if defined (UNIV_TRACE_FLUSH_TIME)
2872
2873
printf (" === > TRACE FLUSH TIME: total flush time (ms) = %zu\n " , gb_flush_time);
2873
- fprintf (gb_trace_file, " \n ===>TRACE_FLUSH_TIME: total flush time (ms) = %zu" , gb_flush_time);
2874
+ // Add the method name in the trace out
2875
+ #if defined (UNIV_PMEMOBJ_DBW)
2876
+ fprintf (gb_trace_file, " \n ===>TRACE_FLUSH_TIME_DBW: total flush time (ms) = %zu" , gb_flush_time);
2877
+ #elif defined (UNIV_PMEMOBJ_BUF) && defined (UNIV_PMEMOBJ_WAL)
2878
+ fprintf (gb_trace_file, " \n ===>TRACE_FLUSH_TIME_WAL_LESS: total flush time (ms) = %zu" , gb_flush_time);
2879
+ #elif defined (UNIV_PMEMOBJ_BUF) && defined (UNIV_PMEMOBJ_BUF_PARTITION)
2880
+ fprintf (gb_trace_file, " \n ===>TRACE_FLUSH_TIME_PARTITION: total flush time (ms) = %zu" , gb_flush_time);
2881
+ #elif defined (UNIV_PMEMOBJ_BUF)
2882
+ fprintf (gb_trace_file, " \n ===>TRACE_FLUSH_TIME_EVEN: total flush time (ms) = %zu" , gb_flush_time);
2883
+ #elif defined (UNIV_PMEMOBJ_WAL)
2884
+ fprintf (gb_trace_file, " \n ===>TRACE_FLUSH_TIME_WAL: total flush time (ms) = %zu" , gb_flush_time);
2885
+ #else
2886
+ fprintf (gb_trace_file, " \n ===>TRACE_FLUSH_TIME_ORI: total flush time (ms) = %zu" , gb_flush_time);
2887
+ #endif // defined (UNIV_PMEMOBJ_DBW)
2874
2888
fclose (gb_trace_file);
2875
- #endif
2889
+ #endif // defined (UNIV_TRACE_FLUSH_TIME)
2876
2890
2877
2891
/* 2. Make all threads created by InnoDB to exit */
2878
2892
srv_shutdown_all_bg_threads ();
0 commit comments