File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ Created April 08, 2011 Vasil Dimov
41
41
#include " sync0rw.h" /* rw_lock_s_lock() */
42
42
#include " ut0byte.h" /* ut_ull_create() */
43
43
#include " ut0sort.h" /* UT_SORT_FUNCTION_BODY */
44
+ #ifdef WITH_WSREP
45
+ extern my_bool wsrep_recovery;
46
+ #endif /* WITH_WSREP */
44
47
45
48
enum status_severity {
46
49
STATUS_INFO,
@@ -690,7 +693,13 @@ DECLARE_THREAD(buf_dump_thread)(
690
693
buf_load_status (STATUS_INFO, " not started" );
691
694
692
695
if (srv_buffer_pool_load_at_startup) {
696
+ #ifdef WITH_WSREP
697
+ if (!wsrep_recovery) {
698
+ #endif /* WITH_WSREP */
693
699
buf_load ();
700
+ #ifdef WITH_WSREP
701
+ }
702
+ #endif /* WITH_WSREP */
694
703
}
695
704
696
705
while (!SHUTTING_DOWN ()) {
@@ -714,8 +723,14 @@ DECLARE_THREAD(buf_dump_thread)(
714
723
}
715
724
716
725
if (srv_buffer_pool_dump_at_shutdown && srv_fast_shutdown != 2 ) {
726
+ #ifdef WITH_WSREP
727
+ if (!wsrep_recovery) {
728
+ #endif /* WITH_WSREP */
717
729
buf_dump (FALSE /* ignore shutdown down flag,
718
730
keep going even if we are in a shutdown state */ );
731
+ #ifdef WITH_WSREP
732
+ }
733
+ #endif /* WITH_WSREP */
719
734
}
720
735
721
736
srv_buf_dump_thread_active = FALSE ;
You can’t perform that action at this time.
0 commit comments