File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ IF(GIT_EXECUTABLE)
43
43
MESSAGE (STATUS "Running git checkout-index" )
44
44
EXECUTE_PROCESS (
45
45
COMMAND "${GIT_EXECUTABLE} " checkout-index --all --prefix=${PACKAGE_DIR}/
46
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
47
+ RESULT_VARIABLE RESULT
48
+ )
49
+ IF (NOT RESULT EQUAL 0 )
50
+ SET (GIT_EXECUTABLE )
51
+ ENDIF ()
52
+ EXECUTE_PROCESS (
46
53
COMMAND "${GIT_EXECUTABLE} " submodule foreach "${GIT_EXECUTABLE} checkout-index --all --prefix=${PACKAGE_DIR} /$path/"
47
54
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
48
55
RESULT_VARIABLE RESULT
Original file line number Diff line number Diff line change @@ -2640,8 +2640,6 @@ void recv_sys_t::apply(bool last_batch)
2640
2640
srv_operation == SRV_OPERATION_RESTORE ||
2641
2641
srv_operation == SRV_OPERATION_RESTORE_EXPORT;
2642
2642
2643
- ut_d (recv_no_log_write = recv_no_ibuf_operations);
2644
-
2645
2643
mtr_t mtr;
2646
2644
2647
2645
if (!pages.empty ())
@@ -3573,7 +3571,8 @@ recv_recovery_from_checkpoint_start(lsn_t flush_lsn)
3573
3571
mysql_mutex_unlock (&log_sys.mutex );
3574
3572
3575
3573
ib::error () << " Recovered only to lsn:"
3576
- << recv_sys.recovered_lsn << " checkpoint_lsn: " << checkpoint_lsn;
3574
+ << recv_sys.recovered_lsn
3575
+ << " checkpoint_lsn: " << checkpoint_lsn;
3577
3576
3578
3577
return (DB_ERROR);
3579
3578
}
@@ -3606,6 +3605,8 @@ recv_recovery_from_checkpoint_start(lsn_t flush_lsn)
3606
3605
3607
3606
recv_sys.apply_log_recs = true ;
3608
3607
recv_no_ibuf_operations = false ;
3608
+ ut_d (recv_no_log_write = srv_operation == SRV_OPERATION_RESTORE
3609
+ || srv_operation == SRV_OPERATION_RESTORE_EXPORT);
3609
3610
3610
3611
mutex_exit (&recv_sys.mutex );
3611
3612
You can’t perform that action at this time.
0 commit comments