File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -359,12 +359,12 @@ DisconnectDatabase(Archive *AHX)
359
359
if (AH -> connCancel )
360
360
{
361
361
/*
362
- * If we have an active query, send a cancel before closing. This is
363
- * of no use for a normal exit, but might be helpful during
364
- * exit_horribly().
362
+ * If we have an active query, send a cancel before closing, ignoring
363
+ * any errors. This is of no use for a normal exit, but might be
364
+ * helpful during exit_horribly().
365
365
*/
366
366
if (PQtransactionStatus (AH -> connection ) == PQTRANS_ACTIVE )
367
- PQcancel (AH -> connCancel , errbuf , sizeof (errbuf ));
367
+ ( void ) PQcancel (AH -> connCancel , errbuf , sizeof (errbuf ));
368
368
369
369
/*
370
370
* Prevent signal handler from sending a cancel after this.
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ DisconnectDatabase(ParallelSlot *slot)
853
853
854
854
if ((cancel = PQgetCancel (slot -> connection )))
855
855
{
856
- PQcancel (cancel , errbuf , sizeof (errbuf ));
856
+ ( void ) PQcancel (cancel , errbuf , sizeof (errbuf ));
857
857
PQfreeCancel (cancel );
858
858
}
859
859
}
You can’t perform that action at this time.
0 commit comments