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

Commit2673ebf

Browse files
committed
Remove redundant setting of tuplesort status
Also add an explanatory comment to match other similar coding withintuplesort_performsort().Xing GuoReviewed by Richard Guo and Cary HuangDiscussion:https://www.postgresql.org/message-id/CACpMh%2BAQ4GXRKKi9ib2ioUH%2BqwNaSAVbetssJ0tMPfxAWuL2yg%40mail.gmail.com
1 parentc06caa0 commit2673ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,13 +1439,13 @@ tuplesort_performsort(Tuplesortstate *state)
14391439
* We were able to accumulate all the tuples required for output
14401440
* in memory, using a heap to eliminate excess tuples. Now we
14411441
* have to transform the heap to a properly-sorted array.
1442+
* Note that sort_bounded_heap sets the correct state->status.
14421443
*/
14431444
sort_bounded_heap(state);
14441445
state->current=0;
14451446
state->eof_reached= false;
14461447
state->markpos_offset=0;
14471448
state->markpos_eof= false;
1448-
state->status=TSS_SORTEDINMEM;
14491449
break;
14501450

14511451
caseTSS_BUILDRUNS:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp