Attempt to fix breakage due to declaration following code.
authorRobert Haas
Fri, 8 Apr 2016 14:52:56 +0000 (10:52 -0400)
committerRobert Haas
Fri, 8 Apr 2016 14:52:56 +0000 (10:52 -0400)
Per Tom Lane and the buildfarm.

src/backend/utils/sort/tuplesort.c

index 78c5cfc8af291cd953c70132a98b2adc21b0fddc..4cc5be92a2a0978d460f1339b699fa5a8044630c 100644 (file)
@@ -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++)