pgindent for worker.c
PSA a trivial patch just to pgindent the file
src/backend/replication/logical/worker.c
(I am modifying this file in a separate patch, but every time I used
pgindent for my own code I would keep seeing these existing format
problems).
----
Kind Regards,
Peter Smith.
Fujitsu Australia
Attachments:
pgindent_worker.patchapplication/octet-stream; name=pgindent_worker.patchDownload
diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c
index f2b2549..eb7db89 100644
--- a/src/backend/replication/logical/worker.c
+++ b/src/backend/replication/logical/worker.c
@@ -225,7 +225,7 @@ static void maybe_reread_subscription(void);
static void apply_dispatch(StringInfo s);
static void apply_handle_commit_internal(StringInfo s,
- LogicalRepCommitData* commit_data);
+ LogicalRepCommitData *commit_data);
static void apply_handle_insert_internal(ResultRelInfo *relinfo,
EState *estate, TupleTableSlot *remoteslot);
static void apply_handle_update_internal(ResultRelInfo *relinfo,
@@ -752,10 +752,10 @@ apply_handle_stream_start(StringInfo s)
/*
* Start a transaction on stream start, this transaction will be committed
- * on the stream stop unless it is a tablesync worker in which case it will
- * be committed after processing all the messages. We need the transaction
- * for handling the buffile, used for serializing the streaming data and
- * subxact info.
+ * on the stream stop unless it is a tablesync worker in which case it
+ * will be committed after processing all the messages. We need the
+ * transaction for handling the buffile, used for serializing the
+ * streaming data and subxact info.
*/
ensure_transaction();
@@ -1060,7 +1060,7 @@ apply_handle_stream_commit(StringInfo s)
* Helper function for apply_handle_commit and apply_handle_stream_commit.
*/
static void
-apply_handle_commit_internal(StringInfo s, LogicalRepCommitData* commit_data)
+apply_handle_commit_internal(StringInfo s, LogicalRepCommitData *commit_data)
{
/* The synchronization worker runs in single transaction. */
if (IsTransactionState() && !am_tablesync_worker())
On Tue, Jan 19, 2021 at 6:53 AM Peter Smith <smithpb2250@gmail.com> wrote:
PSA a trivial patch just to pgindent the file
src/backend/replication/logical/worker.c(I am modifying this file in a separate patch, but every time I used
pgindent for my own code I would keep seeing these existing format
problems).
Sorry for the inconvenience. This seems to be a leftover from my
commit 0926e96c49, so I will take care of this. I think we need to
change this file in the upcoming patches for logical replication of
2PC so, I'll push this change separately.
--
With Regards,
Amit Kapila.