Add missing PQclear(), and comment touchups.

Fixed by Daniele: PQclear already committed, only left the comments touchups.
This commit is contained in:
Josh Kupershmidt 2012-09-12 21:16:55 -07:00 committed by Daniele Varrazzo
parent 957e5ed109
commit 2ba1a575ac

View File

@ -439,7 +439,7 @@ reorg_one_table(const reorg_table *table, const char *orderby)
/* /*
* Register the table to be dropped on error. We use pktype as * Register the table to be dropped on error. We use pktype as
* an advisory lock. The registration should be done after * an advisory lock. The registration should be done after
* the first command is succeeded. * the first command succeeds.
*/ */
pgut_atexit_push(&reorg_cleanup, (void *) table); pgut_atexit_push(&reorg_cleanup, (void *) table);
@ -496,8 +496,8 @@ reorg_one_table(const reorg_table *table, const char *orderby)
PQclear(res); PQclear(res);
/* /*
* 4. Apply log to temp table until no tuples left in the log * 4. Apply log to temp table until no tuples are left in the log
* and all of old transactions are finished. * and all of the old transactions are finished.
*/ */
for (;;) for (;;)
{ {
@ -517,7 +517,7 @@ reorg_one_table(const reorg_table *table, const char *orderby)
continue; /* wait for old transactions */ continue; /* wait for old transactions */
} }
/* ok, go next step. */ /* ok, go to next step. */
break; break;
} }