We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentfd73b9c commit82af8f3Copy full SHA for 82af8f3
src/backup.c
@@ -1405,7 +1405,7 @@ wait_wal_lsn(XLogRecPtr target_lsn, bool is_start_lsn, TimeLineID tli,
1405
}
1406
1407
sleep(1);
1408
-if (interrupted)
+if (interrupted||thread_interrupted)
1409
elog(ERROR,"Interrupted during waiting for WAL %s",in_stream_dir ?"streaming" :"archiving");
1410
try_count++;
1411
src/data.c
@@ -1851,7 +1851,7 @@ get_checksum_map(const char *fullpath, uint32 checksum_version,
1851
if (feof(in))
1852
break;
1853
1854
1855
elog(ERROR,"Interrupted during page reading");
1856
1857
@@ -1914,7 +1914,7 @@ get_lsn_map(const char *fullpath, uint32 checksum_version,
1914
1915
1916
1917
1918
1919
1920
src/dir.c
@@ -781,6 +781,8 @@ dir_check_file(pgFile *file, bool backup_logs)
781
* List files in parent->path directory. If "exclude" is true do not add into
782
* "files" files from pgdata_exclude_files and directories from
783
* pgdata_exclude_dir.
784
+ *
785
+ * TODO: should we check for interrupt here ?
786
*/
787
staticvoid
788
dir_list_file_internal(parray*files,pgFile*parent,constchar*parent_dir,
src/stream.c
@@ -233,7 +233,10 @@ StreamLog(void *arg)
233
ctl.mark_done= false;
234
235
if(ReceiveXlogStream(stream_arg->conn,&ctl)== false)
236
+{
237
+interrupted= true;
238
elog(ERROR,"Problem in receivexlog");
239
+}
240
241
#ifPG_VERSION_NUM >=100000
242
if (!ctl.walmethod->finish())
@@ -245,7 +248,10 @@ StreamLog(void *arg)
245
248
if(ReceiveXlogStream(stream_arg->conn,stream_arg->startpos,stream_arg->starttli,
246
249
NULL, (char*)stream_arg->basedir,stop_streaming,
247
250
standby_message_timeout,NULL, false, false)== false)
251
252
253
254
255
#endif
256
257
/* be paranoid and sort xlog_files_list,
src/utils/logger.c
@@ -169,7 +169,6 @@ exit_if_necessary(int elevel)
169
{
170
/* Interrupt other possible routines */
171
thread_interrupted= true;
172
-interrupted= true;
173
#ifdefWIN32
174
ExitThread(elevel);
175
#else