diff options
| author | Michael Paquier <michael@paquier.xyz> | 2019-08-05 12:14:58 +0900 |
|---|---|---|
| committer | Michael Paquier <michael@paquier.xyz> | 2019-08-05 12:14:58 +0900 |
| commit | 8548ddc61b5858b6466e69f66a6b1a7ea9daef06 (patch) | |
| tree | e94be5d2f212ed5185180b0ebbb5fc060e1f32b6 /src/include/storage | |
| parent | 75506195da81d75597a4025b72f8367e6c45f60d (diff) | |
| download | postgresql-8548ddc61b5858b6466e69f66a6b1a7ea9daef06.tar.gz | |
Fix inconsistencies and typos in the tree, take 9
This addresses more issues with code comments, variable names and
unreferenced variables.
Author: Alexander Lakhin
Discussion: https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com
Diffstat (limited to 'src/include/storage')
| -rw-r--r-- | src/include/storage/itemptr.h | 4 | ||||
| -rw-r--r-- | src/include/storage/off.h | 1 | ||||
| -rw-r--r-- | src/include/storage/proc.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/include/storage/itemptr.h b/src/include/storage/itemptr.h index 7eb274adac..d73eed585e 100644 --- a/src/include/storage/itemptr.h +++ b/src/include/storage/itemptr.h @@ -22,8 +22,8 @@ * * This is a pointer to an item within a disk page of a known file * (for example, a cross-link from an index to its parent table). - * blkid tells us which block, posid tells us which entry in the linp - * (ItemIdData) array we want. + * ip_blkid tells us which block, ip_posid tells us which entry in + * the linp (ItemIdData) array we want. * * Note: because there is an item pointer in each tuple header and index * tuple header on disk, it's very important not to waste space with diff --git a/src/include/storage/off.h b/src/include/storage/off.h index 82655d1466..02e663f6ed 100644 --- a/src/include/storage/off.h +++ b/src/include/storage/off.h @@ -26,7 +26,6 @@ typedef uint16 OffsetNumber; #define InvalidOffsetNumber ((OffsetNumber) 0) #define FirstOffsetNumber ((OffsetNumber) 1) #define MaxOffsetNumber ((OffsetNumber) (BLCKSZ / sizeof(ItemIdData))) -#define OffsetNumberMask (0xffff) /* valid uint16 bits */ /* ---------------- * support macros diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index ac7ee72952..281e1db725 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -332,4 +332,4 @@ extern PGPROC *AuxiliaryPidGetProc(int pid); extern void BecomeLockGroupLeader(void); extern bool BecomeLockGroupMember(PGPROC *leader, int pid); -#endif /* PROC_H */ +#endif /* _PROC_H_ */ |
