Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e6c32d9

Browse files
committed
Clean up newlines following left parentheses
Most came in during the 17 cycle, so backpatch there. Some (particularly reorderbuffer.h) are very old, but backpatching doesn't seem useful. Like commits c9d2977, c4f113e.
1 parent 2a7b2d9 commit e6c32d9

File tree

9 files changed

+32
-55
lines changed

9 files changed

+32
-55
lines changed

contrib/bloom/bloom.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,9 @@ typedef struct BloomOptions
110110
* FreeBlockNumberArray - array of block numbers sized so that metadata fill
111111
* all space in metapage.
112112
*/
113-
typedef BlockNumber FreeBlockNumberArray[
114-
MAXALIGN_DOWN(
115-
BLCKSZ - SizeOfPageHeaderData - MAXALIGN(sizeof(BloomPageOpaqueData))
116-
- MAXALIGN(sizeof(uint16) * 2 + sizeof(uint32) + sizeof(BloomOptions))
117-
) / sizeof(BlockNumber)
118-
];
113+
typedef BlockNumber FreeBlockNumberArray[MAXALIGN_DOWN(BLCKSZ - SizeOfPageHeaderData - MAXALIGN(sizeof(BloomPageOpaqueData))
114+
- MAXALIGN(sizeof(uint16) * 2 + sizeof(uint32) + sizeof(BloomOptions)))
115+
/ sizeof(BlockNumber)];
119116

120117
/* Metadata of bloom index */
121118
typedef struct BloomMetaPageData

src/backend/backup/basebackup_incremental.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ AppendIncrementalManifestData(IncrementalBackupInfo *ib, const char *data,
205205
* time for an incremental parse. We'll do all but the last MIN_CHUNK
206206
* so that we have enough left for the final piece.
207207
*/
208-
json_parse_manifest_incremental_chunk(
209-
ib->inc_state, ib->buf.data, ib->buf.len - MIN_CHUNK, false);
208+
json_parse_manifest_incremental_chunk(ib->inc_state, ib->buf.data,
209+
ib->buf.len - MIN_CHUNK, false);
210210
/* now remove what we just parsed */
211211
memmove(ib->buf.data, ib->buf.data + (ib->buf.len - MIN_CHUNK),
212212
MIN_CHUNK + 1);
@@ -232,8 +232,8 @@ FinalizeIncrementalManifest(IncrementalBackupInfo *ib)
232232
oldcontext = MemoryContextSwitchTo(ib->mcxt);
233233

234234
/* Parse the last chunk of the manifest */
235-
json_parse_manifest_incremental_chunk(
236-
ib->inc_state, ib->buf.data, ib->buf.len, true);
235+
json_parse_manifest_incremental_chunk(ib->inc_state, ib->buf.data,
236+
ib->buf.len, true);
237237

238238
/* Done with the buffer, so release memory. */
239239
pfree(ib->buf.data);

src/backend/utils/adt/pg_locale.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,8 +1374,8 @@ init_database_collation(void)
13741374
default_locale.collate_is_c = true;
13751375
default_locale.ctype_is_c = (strcmp(datlocale, "C") == 0);
13761376

1377-
default_locale.info.builtin.locale = MemoryContextStrdup(
1378-
TopMemoryContext, datlocale);
1377+
default_locale.info.builtin.locale = MemoryContextStrdup(TopMemoryContext,
1378+
datlocale);
13791379
}
13801380
else if (dbform->datlocprovider == COLLPROVIDER_ICU)
13811381
{

src/backend/utils/cache/relcache.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5643,8 +5643,7 @@ RelationGetExclusionInfo(Relation indexRelation,
56435643

56445644
/* We want the exclusion constraint owning the index */
56455645
if ((conform->contype != CONSTRAINT_EXCLUSION &&
5646-
!(conform->conperiod && (
5647-
conform->contype == CONSTRAINT_PRIMARY
5646+
!(conform->conperiod && (conform->contype == CONSTRAINT_PRIMARY
56485647
|| conform->contype == CONSTRAINT_UNIQUE))) ||
56495648
conform->conindid != RelationGetRelid(indexRelation))
56505649
continue;

src/bin/pg_combinebackup/load_manifest.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ load_backup_manifest(char *backup_directory)
204204
(long long int) statbuf.st_size);
205205
}
206206
bytes_left -= rc;
207-
json_parse_manifest_incremental_chunk(
208-
inc_state, buffer, rc, bytes_left == 0);
207+
json_parse_manifest_incremental_chunk(inc_state, buffer, rc, bytes_left == 0);
209208
}
210209

211210
/* Release the incremental state memory */

src/common/parse_manifest.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ json_parse_manifest_incremental_shutdown(JsonManifestParseIncrementalState *incs
182182
*/
183183

184184
void
185-
json_parse_manifest_incremental_chunk(
186-
JsonManifestParseIncrementalState *incstate, const char *chunk, size_t size,
187-
bool is_last)
185+
json_parse_manifest_incremental_chunk(JsonManifestParseIncrementalState *incstate,
186+
const char *chunk, size_t size, bool is_last)
188187
{
189188
JsonParseErrorType res,
190189
expected;

src/common/unicode/category_test.c

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,14 @@ icu_test()
7474
bool prop_hex_digit = pg_u_prop_hex_digit(code);
7575
bool prop_join_control = pg_u_prop_join_control(code);
7676

77-
bool icu_prop_alphabetic = u_hasBinaryProperty(
78-
code, UCHAR_ALPHABETIC);
79-
bool icu_prop_lowercase = u_hasBinaryProperty(
80-
code, UCHAR_LOWERCASE);
81-
bool icu_prop_uppercase = u_hasBinaryProperty(
82-
code, UCHAR_UPPERCASE);
83-
bool icu_prop_cased = u_hasBinaryProperty(
84-
code, UCHAR_CASED);
85-
bool icu_prop_case_ignorable = u_hasBinaryProperty(
86-
code, UCHAR_CASE_IGNORABLE);
87-
bool icu_prop_white_space = u_hasBinaryProperty(
88-
code, UCHAR_WHITE_SPACE);
89-
bool icu_prop_hex_digit = u_hasBinaryProperty(
90-
code, UCHAR_HEX_DIGIT);
91-
bool icu_prop_join_control = u_hasBinaryProperty(
92-
code, UCHAR_JOIN_CONTROL);
77+
bool icu_prop_alphabetic = u_hasBinaryProperty(code, UCHAR_ALPHABETIC);
78+
bool icu_prop_lowercase = u_hasBinaryProperty(code, UCHAR_LOWERCASE);
79+
bool icu_prop_uppercase = u_hasBinaryProperty(code, UCHAR_UPPERCASE);
80+
bool icu_prop_cased = u_hasBinaryProperty(code, UCHAR_CASED);
81+
bool icu_prop_case_ignorable = u_hasBinaryProperty(code, UCHAR_CASE_IGNORABLE);
82+
bool icu_prop_white_space = u_hasBinaryProperty(code, UCHAR_WHITE_SPACE);
83+
bool icu_prop_hex_digit = u_hasBinaryProperty(code, UCHAR_HEX_DIGIT);
84+
bool icu_prop_join_control = u_hasBinaryProperty(code, UCHAR_JOIN_CONTROL);
9385

9486
/*
9587
* Compare with ICU for character classes using:

src/include/common/parse_manifest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ struct JsonManifestParseContext
5050
extern void json_parse_manifest(JsonManifestParseContext *context,
5151
const char *buffer, size_t size);
5252
extern JsonManifestParseIncrementalState *json_parse_manifest_incremental_init(JsonManifestParseContext *context);
53-
extern void json_parse_manifest_incremental_chunk(
54-
JsonManifestParseIncrementalState *incstate, const char *chunk, size_t size,
53+
extern void json_parse_manifest_incremental_chunk(JsonManifestParseIncrementalState *incstate,
54+
const char *chunk, size_t size,
5555
bool is_last);
5656
extern void json_parse_manifest_incremental_shutdown(JsonManifestParseIncrementalState *incstate);
5757

src/include/replication/reorderbuffer.h

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -482,62 +482,53 @@ typedef void (*ReorderBufferRollbackPreparedCB) (ReorderBuffer *rb,
482482
TimestampTz prepare_time);
483483

484484
/* start streaming transaction callback signature */
485-
typedef void (*ReorderBufferStreamStartCB) (
486-
ReorderBuffer *rb,
485+
typedef void (*ReorderBufferStreamStartCB) (ReorderBuffer *rb,
487486
ReorderBufferTXN *txn,
488487
XLogRecPtr first_lsn);
489488

490489
/* stop streaming transaction callback signature */
491-
typedef void (*ReorderBufferStreamStopCB) (
492-
ReorderBuffer *rb,
490+
typedef void (*ReorderBufferStreamStopCB) (ReorderBuffer *rb,
493491
ReorderBufferTXN *txn,
494492
XLogRecPtr last_lsn);
495493

496494
/* discard streamed transaction callback signature */
497-
typedef void (*ReorderBufferStreamAbortCB) (
498-
ReorderBuffer *rb,
495+
typedef void (*ReorderBufferStreamAbortCB) (ReorderBuffer *rb,
499496
ReorderBufferTXN *txn,
500497
XLogRecPtr abort_lsn);
501498

502499
/* prepare streamed transaction callback signature */
503-
typedef void (*ReorderBufferStreamPrepareCB) (
504-
ReorderBuffer *rb,
500+
typedef void (*ReorderBufferStreamPrepareCB) (ReorderBuffer *rb,
505501
ReorderBufferTXN *txn,
506502
XLogRecPtr prepare_lsn);
507503

508504
/* commit streamed transaction callback signature */
509-
typedef void (*ReorderBufferStreamCommitCB) (
510-
ReorderBuffer *rb,
505+
typedef void (*ReorderBufferStreamCommitCB) (ReorderBuffer *rb,
511506
ReorderBufferTXN *txn,
512507
XLogRecPtr commit_lsn);
513508

514509
/* stream change callback signature */
515-
typedef void (*ReorderBufferStreamChangeCB) (
516-
ReorderBuffer *rb,
510+
typedef void (*ReorderBufferStreamChangeCB) (ReorderBuffer *rb,
517511
ReorderBufferTXN *txn,
518512
Relation relation,
519513
ReorderBufferChange *change);
520514

521515
/* stream message callback signature */
522-
typedef void (*ReorderBufferStreamMessageCB) (
523-
ReorderBuffer *rb,
516+
typedef void (*ReorderBufferStreamMessageCB) (ReorderBuffer *rb,
524517
ReorderBufferTXN *txn,
525518
XLogRecPtr message_lsn,
526519
bool transactional,
527520
const char *prefix, Size sz,
528521
const char *message);
529522

530523
/* stream truncate callback signature */
531-
typedef void (*ReorderBufferStreamTruncateCB) (
532-
ReorderBuffer *rb,
524+
typedef void (*ReorderBufferStreamTruncateCB) (ReorderBuffer *rb,
533525
ReorderBufferTXN *txn,
534526
int nrelations,
535527
Relation relations[],
536528
ReorderBufferChange *change);
537529

538530
/* update progress txn callback signature */
539-
typedef void (*ReorderBufferUpdateProgressTxnCB) (
540-
ReorderBuffer *rb,
531+
typedef void (*ReorderBufferUpdateProgressTxnCB) (ReorderBuffer *rb,
541532
ReorderBufferTXN *txn,
542533
XLogRecPtr lsn);
543534

0 commit comments

Comments
 (0)