We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f1d2b7 commit b0b64f6Copy full SHA for b0b64f6
src/backend/utils/sort/tuplesort.c
@@ -2357,11 +2357,6 @@ inittapes(Tuplesortstate *state)
2357
2358
if (state->replaceActive)
2359
{
2360
-#ifdef TRACE_SORT
2361
- if (trace_sort)
2362
- elog(LOG, "replacement selection will sort %d first run tuples",
2363
- state->memtupcount);
2364
-#endif
2365
/*
2366
* Convert the unsorted contents of memtuples[] into a heap. Each
2367
* tuple is marked as belonging to run number zero.
@@ -2372,6 +2367,11 @@ inittapes(Tuplesortstate *state)
2372
*/
2373
2368
int ntuples = state->memtupcount;
2374
2369
2370
+#ifdef TRACE_SORT
2371
+ if (trace_sort)
+ elog(LOG, "replacement selection will sort %d first run tuples",
+ state->memtupcount);
+#endif
2375
state->memtupcount = 0; /* make the heap empty */
2376
2377
for (j = 0; j < ntuples; j++)
0 commit comments