mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +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:
10
src/backend/utils/cache/relmapper.c
vendored
10
src/backend/utils/cache/relmapper.c
vendored
@@ -801,11 +801,11 @@ read_relmap_file(RelMapFile *map, char *dbpath, bool lock_held, int elevel)
|
||||
/*
|
||||
* Open the target file.
|
||||
*
|
||||
* Because Windows isn't happy about the idea of renaming over a file
|
||||
* that someone has open, we only open this file after acquiring the lock,
|
||||
* and for the same reason, we close it before releasing the lock. That
|
||||
* way, by the time write_relmap_file() acquires an exclusive lock, no
|
||||
* one else will have it open.
|
||||
* Because Windows isn't happy about the idea of renaming over a file that
|
||||
* someone has open, we only open this file after acquiring the lock, and
|
||||
* for the same reason, we close it before releasing the lock. That way,
|
||||
* by the time write_relmap_file() acquires an exclusive lock, no one else
|
||||
* will have it open.
|
||||
*/
|
||||
snprintf(mapfilename, sizeof(mapfilename), "%s/%s", dbpath,
|
||||
RELMAPPER_FILENAME);
|
||||
|
||||
Reference in New Issue
Block a user