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

Appearance settings

Commit bc98e1e

Browse filesBrowse files
committed
Merge two assertions to make comment clearer
Authored by Tom Lane, after a gripe from James Coleman. Discussion: https://postgr.es/m/CAAaqYe9GD__4Crm=ddz+-XXcNhfY_V5gFYdLdmkFNq=2VHO56Q@mail.gmail.com
1 parent 9b3c8f0 commit bc98e1e
Copy full SHA for bc98e1e

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/backend/utils/sort/tuplesort.c

Copy file name to clipboardExpand all lines: src/backend/utils/sort/tuplesort.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,8 +1186,8 @@ void
11861186
tuplesort_set_bound(Tuplesortstate *state, int64 bound)
11871187
{
11881188
/* Assert we're called before loading any tuples */
1189-
Assert(state->status == TSS_INITIAL);
1190-
Assert(state->memtupcount == 0);
1189+
Assert(state->status == TSS_INITIAL && state->memtupcount == 0);
1190+
11911191
Assert(!state->bounded);
11921192
Assert(!WORKER(state));
11931193

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.