Skip to content

Commit 2af8e33

Browse files
OffgridwithJDclaude
andcommitted
style: pgindent open_pg_tde_tdemap.c (TDEMapEntryV4/Type)
The migration-reader code added with the key-map base_iv work left four lines that pgindent rewrites once TDEMapEntryV4 and TDEMapEntryType are recognized as types: the typedef-struct closing braces and the `TDEMapEntryV4 *entry` parameter form. This is the only file the pgindent CI check flags. Whitespace only, no behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 886e54d commit 2af8e33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/access/open_pg_tde_tdemap.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ typedef enum
4747
{
4848
MAP_ENTRY_TYPE_EMPTY = 0,
4949
MAP_ENTRY_TYPE_KEY = 1,
50-
} TDEMapEntryType;
50+
} TDEMapEntryType;
5151

5252
typedef struct TDEFileHeader
5353
{
@@ -1021,10 +1021,10 @@ typedef struct TDEMapEntryV4
10211021
unsigned char aead_tag[MAP_ENTRY_AEAD_TAG_SIZE];
10221022
uint8 key_base_iv[INTERNAL_KEY_IV_LEN];
10231023
uint8 encrypted_key_data[32];
1024-
} TDEMapEntryV4;
1024+
} TDEMapEntryV4;
10251025

10261026
static bool
1027-
read_one_map_entry_v4(int fd, TDEMapEntryV4 * entry, off_t *offset)
1027+
read_one_map_entry_v4(int fd, TDEMapEntryV4 *entry, off_t *offset)
10281028
{
10291029
int bytes_read = pg_pread(fd, entry, sizeof(TDEMapEntryV4), *offset);
10301030

@@ -1038,7 +1038,7 @@ read_one_map_entry_v4(int fd, TDEMapEntryV4 * entry, off_t *offset)
10381038
}
10391039

10401040
static void
1041-
ikey_from_map_entry_v4(TDEMapEntryV4 * entry, const TDEPrincipalKey *principal_key, InternalKey *out)
1041+
ikey_from_map_entry_v4(TDEMapEntryV4 *entry, const TDEPrincipalKey *principal_key, InternalKey *out)
10421042
{
10431043
out->key_len = open_pg_tde_cipher_key_length(entry->cipher);
10441044
out->cipher = entry->cipher;

0 commit comments

Comments
 (0)