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,
@@ -689,7 +692,13 @@ DECLARE_THREAD(buf_dump_thread)(
689
692
buf_load_status (STATUS_INFO, " not started" );
690
693
691
694
if (srv_buffer_pool_load_at_startup) {
695
+ #ifdef WITH_WSREP
696
+ if (!wsrep_recovery) {
697
+ #endif /* WITH_WSREP */
692
698
buf_load ();
699
+ #ifdef WITH_WSREP
700
+ }
701
+ #endif /* WITH_WSREP */
693
702
}
694
703
695
704
while (!SHUTTING_DOWN ()) {
@@ -713,8 +722,14 @@ DECLARE_THREAD(buf_dump_thread)(
713
722
}
714
723
715
724
if (srv_buffer_pool_dump_at_shutdown && srv_fast_shutdown != 2 ) {
725
+ #ifdef WITH_WSREP
726
+ if (!wsrep_recovery) {
727
+ #endif /* WITH_WSREP */
716
728
buf_dump (FALSE /* ignore shutdown down flag,
717
729
keep going even if we are in a shutdown state */ );
730
+ #ifdef WITH_WSREP
731
+ }
732
+ #endif /* WITH_WSREP */
718
733
}
719
734
720
735
srv_buf_dump_thread_active = FALSE ;
You can’t perform that action at this time.
0 commit comments