Skip to content

Commit eb2e9c3

Browse files
committed
Whitespace cleanup.
1 parent de060af commit eb2e9c3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

bin/pg_repack.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ rebuild_indexes(const repack_table *table)
943943
}
944944
CLEARPGRES(res);
945945
}
946-
946+
947947
/* We are only going to re-queue one worker, even
948948
* though more than one index build might be finished.
949949
* Any other jobs which may be finished will
@@ -1051,7 +1051,7 @@ repack_one_table(repack_table *table, const char *orderby)
10511051

10521052
if (dryrun)
10531053
return;
1054-
1054+
10551055
/* push repack_cleanup_callback() on stack to clean temporary objects */
10561056
pgut_atexit_push(repack_cleanup_callback, &table->target_oid);
10571057

@@ -1328,7 +1328,7 @@ repack_one_table(repack_table *table, const char *orderby)
13281328
* of APPLY_COUNT, until applying a batch of tuples
13291329
* (via LIMIT) results in our having applied
13301330
* MIN_TUPLES_BEFORE_SWITCH or fewer tuples. We don't want to
1331-
* get stuck repetitively applying some small number of tuples
1331+
* get stuck repetitively applying some small number of tuples
13321332
* from the log table as inserts/updates/deletes may be
13331333
* constantly coming into the original table.
13341334
*/
@@ -1392,14 +1392,14 @@ repack_one_table(repack_table *table, const char *orderby)
13921392
elog(DEBUG2, "---- drop ----");
13931393

13941394
command("BEGIN ISOLATION LEVEL READ COMMITTED", 0, NULL);
1395-
if (!(lock_exclusive(connection, utoa(table->target_oid, buffer),
1396-
table->lock_table, FALSE)))
1397-
{
1398-
elog(WARNING, "lock_exclusive() failed in connection for %s",
1399-
table->target_name);
1400-
goto cleanup;
1401-
}
1402-
1395+
if (!(lock_exclusive(connection, utoa(table->target_oid, buffer),
1396+
table->lock_table, FALSE)))
1397+
{
1398+
elog(WARNING, "lock_exclusive() failed in connection for %s",
1399+
table->target_name);
1400+
goto cleanup;
1401+
}
1402+
14031403
params[1] = utoa(temp_obj_num, indexbuffer);
14041404
command("SELECT repack.repack_drop($1, $2)", 2, params);
14051405
command("COMMIT", 0, NULL);
@@ -1711,7 +1711,7 @@ repack_cleanup_callback(bool fatal, void *userdata)
17111711
Oid target_table = *(Oid *) userdata;
17121712
const char *params[2];
17131713
char buffer[12];
1714-
char num_buff[12];
1714+
char num_buff[12];
17151715

17161716
if(fatal)
17171717
{
@@ -1900,7 +1900,7 @@ repack_table_indexes(PGresult *index_details)
19001900
table_name);
19011901
if (!(lock_exclusive(connection, params[1], sql.data, TRUE)))
19021902
{
1903-
elog(WARNING, "lock_exclusive() failed in connection for %s",
1903+
elog(WARNING, "lock_exclusive() failed in connection for %s",
19041904
table_name);
19051905
goto drop_idx;
19061906
}
@@ -1974,7 +1974,7 @@ repack_all_indexes(char *errbuf, size_t errsize)
19741974

19751975
if (r_index.head)
19761976
{
1977-
appendStringInfoString(&sql,
1977+
appendStringInfoString(&sql,
19781978
"SELECT i.relname, idx.indexrelid, idx.indisvalid, idx.indrelid, idx.indrelid::regclass, n.nspname"
19791979
" FROM pg_index idx JOIN pg_class i ON i.oid = idx.indexrelid"
19801980
" JOIN pg_namespace n ON n.oid = i.relnamespace"
@@ -2019,7 +2019,7 @@ repack_all_indexes(char *errbuf, size_t errsize)
20192019
if(table_list.head)
20202020
elog(INFO, "repacking indexes of \"%s\"", cell->val);
20212021

2022-
if (!repack_table_indexes(res))
2022+
if (!repack_table_indexes(res))
20232023
elog(WARNING, "repack failed for \"%s\"", cell->val);
20242024

20252025
CLEARPGRES(res);

0 commit comments

Comments
 (0)