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

Commite942af7

Browse files
committed
Suppress compiler warning in non-cassert builds.
Oversight in808e13b, reported by Bruce Momjian.Discussion:https://postgr.es/m/20200826160251.GB21909@momjian.us
1 parentfe7fd4e commite942af7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎src/backend/storage/file/sharedfileset.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ SharedFileSetDeleteOnProcExit(int status, Datum arg)
285285
void
286286
SharedFileSetUnregister(SharedFileSet*input_fileset)
287287
{
288-
boolfound= false;
289288
ListCell*l;
290289

291290
/*
@@ -303,12 +302,12 @@ SharedFileSetUnregister(SharedFileSet *input_fileset)
303302
if (input_fileset==fileset)
304303
{
305304
filesetlist=list_delete_cell(filesetlist,l);
306-
found= true;
307-
break;
305+
return;
308306
}
309307
}
310308

311-
Assert(found);
309+
/* Should have found a match */
310+
Assert(false);
312311
}
313312

314313
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp