mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. This set of diffs is a bit larger than typical. We've updated to pg_bsd_indent 2.1.2, which properly indents variable declarations that have multi-line initialization expressions (the continuation lines are now indented one tab stop). We've also updated to perltidy version 20230309 and changed some of its settings, which reduces its desire to add whitespace to lines to make assignments etc. line up. Going forward, that should make for fewer random-seeming changes to existing code. Discussion: https://postgr.es/m/20230428092545.qfb3y5wcu4cm75ur@alvherre.pgsql
This commit is contained in:
@@ -19,11 +19,12 @@ typedef struct
|
||||
WalWriteMethod *wwmethod;
|
||||
off_t currpos;
|
||||
char *pathname;
|
||||
|
||||
/*
|
||||
* MORE DATA FOLLOWS AT END OF STRUCT
|
||||
*
|
||||
* Each WalWriteMethod is expected to embed this as the first member of
|
||||
* a larger struct with method-specific fields following.
|
||||
* Each WalWriteMethod is expected to embed this as the first member of a
|
||||
* larger struct with method-specific fields following.
|
||||
*/
|
||||
} Walfile;
|
||||
|
||||
@@ -45,7 +46,7 @@ typedef struct WalWriteMethodOps
|
||||
* automatically renamed in close(). If pad_to_size is specified, the file
|
||||
* will be padded with NUL up to that size, if supported by the Walmethod.
|
||||
*/
|
||||
Walfile *(*open_for_write) (WalWriteMethod *wwmethod, const char *pathname, const char *temp_suffix, size_t pad_to_size);
|
||||
Walfile *(*open_for_write) (WalWriteMethod *wwmethod, const char *pathname, const char *temp_suffix, size_t pad_to_size);
|
||||
|
||||
/*
|
||||
* Close an open Walfile, using one or more methods for handling automatic
|
||||
@@ -107,11 +108,12 @@ struct WalWriteMethod
|
||||
bool sync;
|
||||
const char *lasterrstring; /* if set, takes precedence over lasterrno */
|
||||
int lasterrno;
|
||||
|
||||
/*
|
||||
* MORE DATA FOLLOWS AT END OF STRUCT
|
||||
*
|
||||
* Each WalWriteMethod is expected to embed this as the first member of
|
||||
* a larger struct with method-specific fields following.
|
||||
* Each WalWriteMethod is expected to embed this as the first member of a
|
||||
* larger struct with method-specific fields following.
|
||||
*/
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user