Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd51f704

Browse files
committed
pg_dump: Replace can't-happen error with assertion
1 parent641b76d commitd51f704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pg_dump/pg_backup_tar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ _tarReadRaw(ArchiveHandle *AH, void *buf, size_t len, TAR_MEMBER *th, FILE *fh)
515515
size_tused=0;
516516
size_tres=0;
517517

518+
Assert(th||fh);
519+
518520
avail=AH->lookaheadLen-AH->lookaheadPos;
519521
if (avail>0)
520522
{
@@ -567,8 +569,6 @@ _tarReadRaw(ArchiveHandle *AH, void *buf, size_t len, TAR_MEMBER *th, FILE *fh)
567569
READ_ERROR_EXIT(th->nFH);
568570
}
569571
}
570-
else
571-
fatal("internal error -- neither th nor fh specified in _tarReadRaw()");
572572
}
573573

574574
ctx->tarFHpos+=res+used;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp