@@ -898,20 +898,12 @@ actionDoRetry(action_t * const pThis, wti_t * const pWti)
898
898
++ iRetries ;
899
899
datetime .GetTime (& ttTemp );
900
900
iSleepPeriod = 0 ;
901
- DBGPRINTF ("actionDoRetry: %s ResumeRtry=%lld"
902
- "(now %lld), iRetries %d\n" ,
903
- pThis -> pszName , (long long )pThis -> ttResumeRtry ,
904
- (long long )ttTemp , iRetries );
905
- if (pThis -> ttResumeRtry > 0 && pThis -> iResumeInterval > 0 ) {
906
- if (difftime (pThis -> ttResumeRtry , ttTemp ) > pThis -> iResumeInterval ) {
907
- iSleepPeriod = pThis -> iResumeInterval ;
908
- } else if (difftime (pThis -> ttResumeRtry , ttTemp ) > 1 ) {
909
- iSleepPeriod = (int )difftime (pThis -> ttResumeRtry , ttTemp );
910
- }
911
- DBGPRINTF ("actionDoRetry: %s sleep %d seconds\n" ,
912
- pThis -> pszName , iSleepPeriod );
913
- srSleep (iSleepPeriod , 0 );
914
- }
901
+ DBGPRINTF ("actionDoRetry: %s, controlled by resumeInterval, may miss the next try."
902
+ "Will sleep %d seconds. ResumeRtry=%lld (now %lld), iRetries %d\n" ,
903
+ pThis -> pszName ,
904
+ pThis -> iResumeInterval , (long long )pThis -> ttResumeRtry , (long long )ttTemp , iRetries );
905
+ iSleepPeriod = pThis -> iResumeInterval ;
906
+ srSleep (iSleepPeriod , 0 );
915
907
if (* pWti -> pbShutdownImmediate ) {
916
908
ABORT_FINALIZE (RS_RET_FORCE_TERM );
917
909
}
0 commit comments