Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57811b7 commit 345bf97Copy full SHA for 345bf97
src/bin/pg_dump/pg_backup_db.c
@@ -342,12 +342,12 @@ DisconnectDatabase(Archive *AHX)
342
if (AH->connCancel)
343
{
344
/*
345
- * If we have an active query, send a cancel before closing. This is
346
- * of no use for a normal exit, but might be helpful during
347
- * exit_horribly().
+ * If we have an active query, send a cancel before closing, ignoring
+ * any errors. This is of no use for a normal exit, but might be
+ * helpful during exit_horribly().
348
*/
349
if (PQtransactionStatus(AH->connection) == PQTRANS_ACTIVE)
350
- PQcancel(AH->connCancel, errbuf, sizeof(errbuf));
+ (void) PQcancel(AH->connCancel, errbuf, sizeof(errbuf));
351
352
353
* Prevent signal handler from sending a cancel after this.
0 commit comments