mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Harmonize parameter names in storage and AM code.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in storage, catalog, access method, executor, and logical replication code, as well as in miscellaneous utility/library code. Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Later commits will do the same for other parts of the codebase. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
This commit is contained in:
@@ -62,13 +62,13 @@ static void DecodePrepare(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
|
||||
|
||||
|
||||
/* common function to decode tuples */
|
||||
static void DecodeXLogTuple(char *data, Size len, ReorderBufferTupleBuf *tup);
|
||||
static void DecodeXLogTuple(char *data, Size len, ReorderBufferTupleBuf *tuple);
|
||||
|
||||
/* helper functions for decoding transactions */
|
||||
static inline bool FilterPrepare(LogicalDecodingContext *ctx,
|
||||
TransactionId xid, const char *gid);
|
||||
static bool DecodeTXNNeedSkip(LogicalDecodingContext *ctx,
|
||||
XLogRecordBuffer *buf, Oid dbId,
|
||||
XLogRecordBuffer *buf, Oid txn_dbid,
|
||||
RepOriginId origin_id);
|
||||
|
||||
/*
|
||||
|
||||
@@ -312,7 +312,8 @@ static inline void cleanup_subxact_info(void);
|
||||
* Serialize and deserialize changes for a toplevel transaction.
|
||||
*/
|
||||
static void stream_cleanup_files(Oid subid, TransactionId xid);
|
||||
static void stream_open_file(Oid subid, TransactionId xid, bool first);
|
||||
static void stream_open_file(Oid subid, TransactionId xid,
|
||||
bool first_segment);
|
||||
static void stream_write_change(char action, StringInfo s);
|
||||
static void stream_close_file(void);
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ static void pgoutput_begin_txn(LogicalDecodingContext *ctx,
|
||||
static void pgoutput_commit_txn(LogicalDecodingContext *ctx,
|
||||
ReorderBufferTXN *txn, XLogRecPtr commit_lsn);
|
||||
static void pgoutput_change(LogicalDecodingContext *ctx,
|
||||
ReorderBufferTXN *txn, Relation rel,
|
||||
ReorderBufferTXN *txn, Relation relation,
|
||||
ReorderBufferChange *change);
|
||||
static void pgoutput_truncate(LogicalDecodingContext *ctx,
|
||||
ReorderBufferTXN *txn, int nrelations, Relation relations[],
|
||||
@@ -212,7 +212,7 @@ typedef struct PGOutputTxnData
|
||||
/* Map used to remember which relation schemas we sent. */
|
||||
static HTAB *RelationSyncCache = NULL;
|
||||
|
||||
static void init_rel_sync_cache(MemoryContext decoding_context);
|
||||
static void init_rel_sync_cache(MemoryContext cachectx);
|
||||
static void cleanup_rel_sync_cache(TransactionId xid, bool is_commit);
|
||||
static RelationSyncEntry *get_rel_sync_entry(PGOutputData *data,
|
||||
Relation relation);
|
||||
|
||||
@@ -108,7 +108,7 @@ static void ReplicationSlotDropPtr(ReplicationSlot *slot);
|
||||
/* internal persistency functions */
|
||||
static void RestoreSlotFromDisk(const char *name);
|
||||
static void CreateSlotOnDisk(ReplicationSlot *slot);
|
||||
static void SaveSlotToPath(ReplicationSlot *slot, const char *path, int elevel);
|
||||
static void SaveSlotToPath(ReplicationSlot *slot, const char *dir, int elevel);
|
||||
|
||||
/*
|
||||
* Report shared-memory space needed by ReplicationSlotsShmemInit.
|
||||
|
||||
Reference in New Issue
Block a user