diff options
| author | Michael Paquier | 2019-07-29 03:28:30 +0000 |
|---|---|---|
| committer | Michael Paquier | 2019-07-29 03:28:30 +0000 |
| commit | eb43f3d19324d7e5376b1f57fc2e5c142a6b5f3d (patch) | |
| tree | bf891accfbaff49a006960ebdfd4f1f8e12d4252 /src/include | |
| parent | 7cce159349ccdb39ade07f869f08e4929ef2fe0b (diff) | |
Fix inconsistencies and typos in the tree
This is numbered take 8, and addresses again a set of issues with code
comments, variable names and unreferenced variables.
Author: Alexander Lakhin
Discussion: https://postgr.es/m/b137b5eb-9c95-9c2f-586e-38aba7d59788@gmail.com
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/gist_private.h | 2 | ||||
| -rw-r--r-- | src/include/commands/dbcommands.h | 2 | ||||
| -rw-r--r-- | src/include/replication/logicalproto.h | 6 | ||||
| -rw-r--r-- | src/include/statistics/statistics.h | 2 | ||||
| -rw-r--r-- | src/include/storage/bufpage.h | 2 | ||||
| -rw-r--r-- | src/include/storage/lock.h | 2 | ||||
| -rw-r--r-- | src/include/storage/lockdefs.h | 2 | ||||
| -rw-r--r-- | src/include/storage/lwlock.h | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/src/include/access/gist_private.h b/src/include/access/gist_private.h index 0488d01c9b8..acebe6c93b0 100644 --- a/src/include/access/gist_private.h +++ b/src/include/access/gist_private.h @@ -417,7 +417,7 @@ extern bool gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate, OffsetNumber oldoffnum, BlockNumber *newblkno, Buffer leftchildbuf, List **splitinfo, - bool markleftchild, + bool markfollowright, Relation heapRel, bool is_build); diff --git a/src/include/commands/dbcommands.h b/src/include/commands/dbcommands.h index 28bf21153d8..154c8157ee2 100644 --- a/src/include/commands/dbcommands.h +++ b/src/include/commands/dbcommands.h @@ -26,7 +26,7 @@ extern Oid AlterDatabase(ParseState *pstate, AlterDatabaseStmt *stmt, bool isTop extern Oid AlterDatabaseSet(AlterDatabaseSetStmt *stmt); extern ObjectAddress AlterDatabaseOwner(const char *dbname, Oid newOwnerId); -extern Oid get_database_oid(const char *dbname, bool missingok); +extern Oid get_database_oid(const char *dbname, bool missing_ok); extern char *get_database_name(Oid dbid); extern void check_encoding_locale_matches(int encoding, const char *collate, const char *ctype); diff --git a/src/include/replication/logicalproto.h b/src/include/replication/logicalproto.h index 9c0000cc593..3fc430af013 100644 --- a/src/include/replication/logicalproto.h +++ b/src/include/replication/logicalproto.h @@ -19,8 +19,8 @@ /* * Protocol capabilities * - * LOGICAL_PROTO_VERSION_NUM is our native protocol and the greatest version - * we can support. PGLOGICAL_PROTO_MIN_VERSION_NUM is the oldest version we + * LOGICALREP_PROTO_VERSION_NUM is our native protocol and the greatest version + * we can support. LOGICALREP_PROTO_MIN_VERSION_NUM is the oldest version we * have backwards compatibility for. The client requests protocol version at * connect time. */ @@ -106,4 +106,4 @@ extern LogicalRepRelation *logicalrep_read_rel(StringInfo in); extern void logicalrep_write_typ(StringInfo out, Oid typoid); extern void logicalrep_read_typ(StringInfo out, LogicalRepTyp *ltyp); -#endif /* LOGICALREP_PROTO_H */ +#endif /* LOGICAL_PROTO_H */ diff --git a/src/include/statistics/statistics.h b/src/include/statistics/statistics.h index cb7bc630e98..3b7da3be609 100644 --- a/src/include/statistics/statistics.h +++ b/src/include/statistics/statistics.h @@ -22,7 +22,7 @@ #define STATS_NDISTINCT_MAGIC 0xA352BFA4 /* struct identifier */ #define STATS_NDISTINCT_TYPE_BASIC 1 /* struct version */ -/* MVDistinctItem represents a single combination of columns */ +/* MVNDistinctItem represents a single combination of columns */ typedef struct MVNDistinctItem { double ndistinct; /* ndistinct value for this combination */ diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h index 34b68ad0e00..4ef6d8ddd4a 100644 --- a/src/include/storage/bufpage.h +++ b/src/include/storage/bufpage.h @@ -306,7 +306,7 @@ typedef PageHeaderData *PageHeader; * This is intended to catch use of the pointer before page initialization. * It is implemented as a function due to the limitations of the MSVC * compiler, which choked on doing all these tests within another macro. We - * return true so that MacroAssert() can be used while still getting the + * return true so that AssertMacro() can be used while still getting the * specifics from the macro failure within this function. */ static inline bool diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h index 986bb6433a0..6efb7a96481 100644 --- a/src/include/storage/lock.h +++ b/src/include/storage/lock.h @@ -594,4 +594,4 @@ extern void VirtualXactLockTableInsert(VirtualTransactionId vxid); extern void VirtualXactLockTableCleanup(void); extern bool VirtualXactLock(VirtualTransactionId vxid, bool wait); -#endif /* LOCK_H */ +#endif /* LOCK_H_ */ diff --git a/src/include/storage/lockdefs.h b/src/include/storage/lockdefs.h index 3c2c47dc6ae..bda08edcfdb 100644 --- a/src/include/storage/lockdefs.h +++ b/src/include/storage/lockdefs.h @@ -56,4 +56,4 @@ typedef struct xl_standby_lock Oid relOid; /* OID of table */ } xl_standby_lock; -#endif /* LOCKDEF_H_ */ +#endif /* LOCKDEFS_H_ */ diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h index 08e0dc8144b..f627dfedc5c 100644 --- a/src/include/storage/lwlock.h +++ b/src/include/storage/lwlock.h @@ -133,7 +133,7 @@ typedef enum LWLockMode { LW_EXCLUSIVE, LW_SHARED, - LW_WAIT_UNTIL_FREE /* A special mode used in PGPROC->lwlockMode, + LW_WAIT_UNTIL_FREE /* A special mode used in PGPROC->lwWaitMode, * when waiting for lock to become free. Not * to be used as LWLockAcquire argument */ } LWLockMode; |
