aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-04-08 10:52:56 -0400
committerRobert Haas <rhaas@postgresql.org>2016-04-08 10:52:56 -0400
commitb0b64f65054e6b858b845b46298a624aaaea1deb (patch)
treeeac4a8841f07003e366bbb856ae3ad180a65d23b /src
parent2f1d2b7a75fecad25295cb3f453503eb6a176d4f (diff)
downloadpostgresql-b0b64f65054e6b858b845b46298a624aaaea1deb.tar.gz
postgresql-b0b64f65054e6b858b845b46298a624aaaea1deb.zip
Attempt to fix breakage due to declaration following code.
Per Tom Lane and the buildfarm.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/sort/tuplesort.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/sort/tuplesort.c b/src/backend/utils/sort/tuplesort.c
index 78c5cfc8af2..4cc5be92a2a 100644
--- a/src/backend/utils/sort/tuplesort.c
+++ b/src/backend/utils/sort/tuplesort.c
@@ -2357,11 +2357,6 @@ inittapes(Tuplesortstate *state)
if (state->replaceActive)
{
-#ifdef TRACE_SORT
- if (trace_sort)
- elog(LOG, "replacement selection will sort %d first run tuples",
- state->memtupcount);
-#endif
/*
* Convert the unsorted contents of memtuples[] into a heap. Each
* tuple is marked as belonging to run number zero.
@@ -2372,6 +2367,11 @@ inittapes(Tuplesortstate *state)
*/
int ntuples = state->memtupcount;
+#ifdef TRACE_SORT
+ if (trace_sort)
+ elog(LOG, "replacement selection will sort %d first run tuples",
+ state->memtupcount);
+#endif
state->memtupcount = 0; /* make the heap empty */
for (j = 0; j < ntuples; j++)