diff options
| author | Robert Haas | 2016-06-09 22:02:36 +0000 |
|---|---|---|
| committer | Robert Haas | 2016-06-09 22:02:36 +0000 |
| commit | 4bc424b968058c7f0aa685821d7039e86faac99c (patch) | |
| tree | a4e245ae67bd11edb3926ff5fb3b0223438ac283 /src/include/replication | |
| parent | 9164deea2f4ac90ee5e008ff41fc5ad4423887b2 (diff) | |
pgindent run for 9.6
Diffstat (limited to 'src/include/replication')
| -rw-r--r-- | src/include/replication/message.h | 12 | ||||
| -rw-r--r-- | src/include/replication/output_plugin.h | 12 | ||||
| -rw-r--r-- | src/include/replication/reorderbuffer.h | 30 | ||||
| -rw-r--r-- | src/include/replication/snapbuild.h | 2 |
4 files changed, 28 insertions, 28 deletions
diff --git a/src/include/replication/message.h b/src/include/replication/message.h index 23b9cdb268b..9aff9273bf5 100644 --- a/src/include/replication/message.h +++ b/src/include/replication/message.h @@ -19,11 +19,11 @@ */ typedef struct xl_logical_message { - Oid dbId; /* database Oid emitted from */ - bool transactional; /* is message transactional? */ - Size prefix_size; /* length of prefix */ - Size message_size; /* size of the message */ - char message[FLEXIBLE_ARRAY_MEMBER]; /* message including the null + Oid dbId; /* database Oid emitted from */ + bool transactional; /* is message transactional? */ + Size prefix_size; /* length of prefix */ + Size message_size; /* size of the message */ + char message[FLEXIBLE_ARRAY_MEMBER]; /* message including the null * terminated prefix of length * prefix_size */ } xl_logical_message; @@ -31,7 +31,7 @@ typedef struct xl_logical_message #define SizeOfLogicalMessage (offsetof(xl_logical_message, message)) extern XLogRecPtr LogLogicalMessage(const char *prefix, const char *message, - size_t size, bool transactional); + size_t size, bool transactional); /* RMGR API*/ #define XLOG_LOGICAL_MESSAGE 0x00 diff --git a/src/include/replication/output_plugin.h b/src/include/replication/output_plugin.h index 3a2ca985fbe..7911cc0a29e 100644 --- a/src/include/replication/output_plugin.h +++ b/src/include/replication/output_plugin.h @@ -78,12 +78,12 @@ typedef void (*LogicalDecodeCommitCB) ( */ typedef void (*LogicalDecodeMessageCB) ( struct LogicalDecodingContext *, - ReorderBufferTXN *txn, - XLogRecPtr message_lsn, - bool transactional, - const char *prefix, - Size message_size, - const char *message); + ReorderBufferTXN *txn, + XLogRecPtr message_lsn, + bool transactional, + const char *prefix, + Size message_size, + const char *message); /* * Filter changes by origin. diff --git a/src/include/replication/reorderbuffer.h b/src/include/replication/reorderbuffer.h index e0708940a04..9e209aef4fb 100644 --- a/src/include/replication/reorderbuffer.h +++ b/src/include/replication/reorderbuffer.h @@ -27,7 +27,7 @@ typedef struct ReorderBufferTupleBuf HeapTupleData tuple; /* pre-allocated size of tuple buffer, different from tuple size */ - Size alloc_tuple_size; + Size alloc_tuple_size; /* actual tuple data follows */ } ReorderBufferTupleBuf; @@ -102,10 +102,10 @@ typedef struct ReorderBufferChange /* Message with arbitrary data. */ struct { - char *prefix; - Size message_size; - char *message; - } msg; + char *prefix; + Size message_size; + char *message; + } msg; /* New snapshot, set when action == *_INTERNAL_SNAPSHOT */ Snapshot snapshot; @@ -285,12 +285,12 @@ typedef void (*ReorderBufferCommitCB) ( /* message callback signature */ typedef void (*ReorderBufferMessageCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr message_lsn, - bool transactional, - const char *prefix, Size sz, - const char *message); + ReorderBuffer *rb, + ReorderBufferTXN *txn, + XLogRecPtr message_lsn, + bool transactional, + const char *prefix, Size sz, + const char *message); struct ReorderBuffer { @@ -369,9 +369,9 @@ ReorderBufferChange *ReorderBufferGetChange(ReorderBuffer *); void ReorderBufferReturnChange(ReorderBuffer *, ReorderBufferChange *); void ReorderBufferQueueChange(ReorderBuffer *, TransactionId, XLogRecPtr lsn, ReorderBufferChange *); -void ReorderBufferQueueMessage(ReorderBuffer *, TransactionId, Snapshot snapshot, XLogRecPtr lsn, - bool transactional, const char *prefix, - Size message_size, const char *message); +void ReorderBufferQueueMessage(ReorderBuffer *, TransactionId, Snapshot snapshot, XLogRecPtr lsn, + bool transactional, const char *prefix, + Size message_size, const char *message); void ReorderBufferCommit(ReorderBuffer *, TransactionId, XLogRecPtr commit_lsn, XLogRecPtr end_lsn, TimestampTz commit_time, RepOriginId origin_id, XLogRecPtr origin_lsn); @@ -392,7 +392,7 @@ void ReorderBufferAddNewTupleCids(ReorderBuffer *, TransactionId, XLogRecPtr lsn void ReorderBufferAddInvalidations(ReorderBuffer *, TransactionId, XLogRecPtr lsn, Size nmsgs, SharedInvalidationMessage *msgs); void ReorderBufferImmediateInvalidation(ReorderBuffer *, uint32 ninvalidations, - SharedInvalidationMessage *invalidations); + SharedInvalidationMessage *invalidations); void ReorderBufferProcessXid(ReorderBuffer *, TransactionId xid, XLogRecPtr lsn); void ReorderBufferXidSetCatalogChanges(ReorderBuffer *, TransactionId xid, XLogRecPtr lsn); bool ReorderBufferXidHasCatalogChanges(ReorderBuffer *, TransactionId xid); diff --git a/src/include/replication/snapbuild.h b/src/include/replication/snapbuild.h index c4127a1cf75..df229a895cb 100644 --- a/src/include/replication/snapbuild.h +++ b/src/include/replication/snapbuild.h @@ -64,7 +64,7 @@ extern void SnapBuildClearExportedSnapshot(void); extern SnapBuildState SnapBuildCurrentState(SnapBuild *snapstate); extern Snapshot SnapBuildGetOrBuildSnapshot(SnapBuild *builder, - TransactionId xid); + TransactionId xid); extern bool SnapBuildXactNeedsSkip(SnapBuild *snapstate, XLogRecPtr ptr); |
