Skip to content

Commit

Permalink
PG-1095 More manual code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Oct 29, 2024
1 parent c62d0ec commit fcbfb27
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/access/pg_tde_slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ tdeheap_slot_deform_heap_tuple(TupleTableSlot *slot, HeapTuple tuple, uint32 *of
HeapTupleHeader tup = tuple->t_data;
bool hasnulls = HeapTupleHasNulls(tuple);
int attnum;
char *tp; /* ptr to tuple data */
uint32 off; /* offset in tuple data */
char *tp; /* ptr to tuple data */
uint32 off; /* offset in tuple data */
bits8 *bp = tup->t_bits; /* ptr to null bitmap in tuple */
bool slow; /* can we use/set attcacheoff? */
bool slow; /* can we use/set attcacheoff? */

/* We can only fetch as many attributes as the tuple has. */
natts = Min(HeapTupleHeaderGetNatts(tuple->t_data), natts);
Expand Down Expand Up @@ -449,7 +449,7 @@ tdeheap_slot_deform_heap_tuple(TupleTableSlot *slot, HeapTuple tuple, uint32 *of
static HeapTuple
slot_copytuple(void *buffer, HeapTuple tuple)
{
HeapTuple newTuple;
HeapTuple newTuple;

if (!HeapTupleIsValid(tuple) || tuple->t_data == NULL)
return NULL;
Expand Down
8 changes: 4 additions & 4 deletions src/access/pg_tde_xlog_encrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ XLogInitGUC(void)
static int
XLOGChooseNumBuffers(void)
{
int xbuffers;
int xbuffers;

xbuffers = NBuffers / 32;
if (xbuffers > (wal_segment_size / XLOG_BLCKSZ))
Expand All @@ -81,7 +81,7 @@ XLOGChooseNumBuffers(void)
Size
TDEXLogEncryptBuffSize(void)
{
int xbuffers;
int xbuffers;

xbuffers = (XLOGbuffers == -1) ? XLOGChooseNumBuffers() : XLOGbuffers;
return (Size) XLOG_BLCKSZ * xbuffers;
Expand All @@ -100,7 +100,7 @@ TDEXLogEncryptBuffSize(void)
void
TDEXLogShmemInit(void)
{
bool foundBuf;
bool foundBuf;

if (EncryptXLog)
{
Expand Down Expand Up @@ -312,4 +312,4 @@ SetXLogPageIVPrefix(TimeLineID tli, XLogRecPtr lsn, char *iv_prefix)
iv_prefix[11] = (lsn & 0xFF);
}

#endif /* PERCONA_EXT */
#endif /* PERCONA_EXT */
2 changes: 1 addition & 1 deletion src/catalog/tde_global_space.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ init_default_keyring(void)
{
if (GetAllKeyringProviders(GLOBAL_DATA_TDE_OID, GLOBALTABLESPACE_OID) == NIL)
{
char path[MAXPGPATH] = {0};
char path[MAXPGPATH] = {0};
static KeyringProvideRecord provider =
{
.provider_name = KEYRING_DEFAULT_NAME,
Expand Down
2 changes: 1 addition & 1 deletion src/catalog/tde_principal_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ RotatePrincipalKey(TDEPrincipalKey *current_key, const char *new_key_name, const
bool
xl_tde_perform_rotate_key(XLogPrincipalKeyRotate *xlrec)
{
bool ret;
bool ret;

ret = pg_tde_write_map_keydata_files(xlrec->map_size, xlrec->buff, xlrec->keydata_size, &xlrec->buff[xlrec->map_size]);
clear_principal_key_cache(xlrec->databaseId);
Expand Down
4 changes: 2 additions & 2 deletions src/common/pg_tde_shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ TdeRequiredLocksCount(void)
void
TdeShmemInit(void)
{
bool found;
bool found;
TdeSharedState *tdeState;
Size required_shmem_size = TdeRequiredSharedMemorySize();
Size required_shmem_size = TdeRequiredSharedMemorySize();

LWLockAcquire(AddinShmemInitLock, LW_EXCLUSIVE);
/* Create or attach to the shared memory state */
Expand Down

0 comments on commit fcbfb27

Please sign in to comment.