From f03a0343bcfb470037a16ec9fc0187d1df5a5ec8 Mon Sep 17 00:00:00 2001 From: Sameer Awasekar Date: Wed, 1 Jun 2022 19:36:00 +0530 Subject: [PATCH] fix indentations --- .../distributed/operations/split_shard_replication_setup.c | 2 +- .../distributed/shardsplit/shardsplit_shared_memory.c | 5 +++-- .../regress/sql/split_shard_replication_colocated_setup.sql | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/backend/distributed/operations/split_shard_replication_setup.c b/src/backend/distributed/operations/split_shard_replication_setup.c index 791c320de..abaec5fc7 100644 --- a/src/backend/distributed/operations/split_shard_replication_setup.c +++ b/src/backend/distributed/operations/split_shard_replication_setup.c @@ -351,7 +351,7 @@ CreateShardSplitInfo(uint64 sourceShardIdToSplit, /* Oid of dummy table at the source */ Oid destSplitChildShardOid = GetTableLocalShardOid(citusTableOid, - desSplitChildShardId); + desSplitChildShardId); if (citusTableOid == InvalidOid || sourceShardToSplitOid == InvalidOid || diff --git a/src/backend/distributed/shardsplit/shardsplit_shared_memory.c b/src/backend/distributed/shardsplit/shardsplit_shared_memory.c index eab5f348e..34dd6646c 100644 --- a/src/backend/distributed/shardsplit/shardsplit_shared_memory.c +++ b/src/backend/distributed/shardsplit/shardsplit_shared_memory.c @@ -51,7 +51,7 @@ GetShardSplitInfoSMHeaderFromDSMHandle(dsm_handle dsmHandle) } /* - * Detatching segment associated with resource owner with 'dsm_pin_mapping' call before the + * Detatching segment associated with resource owner with 'dsm_pin_mapping' call before the * resource owner releases, to avoid warning being logged and potential leaks. */ dsm_pin_mapping(dsmSegment); @@ -62,6 +62,7 @@ GetShardSplitInfoSMHeaderFromDSMHandle(dsm_handle dsmHandle) return header; } + /* * GetShardSplitInfoSMArrayForSlot returns pointer to the array of * 'ShardSplitInfo' struct stored in the shared memory segment. @@ -95,7 +96,7 @@ GetShardSplitInfoSMArrayForSlot(char *slotName, int *shardSplitInfoCount) /* * AllocateSharedMemoryForShardSplitInfo is used to allocate and store * information about the shard undergoing a split. The function allocates dynamic - * shared memory segment consisting of a header and an array of ShardSplitInfo structure. + * shared memory segment consisting of a header and an array of ShardSplitInfo structure. * The contents of this shared memory segment are consumed by WAL sender process * during catch up phase of replication through logical decoding plugin. * diff --git a/src/test/regress/sql/split_shard_replication_colocated_setup.sql b/src/test/regress/sql/split_shard_replication_colocated_setup.sql index a7aa373dc..3bf64fbcc 100644 --- a/src/test/regress/sql/split_shard_replication_colocated_setup.sql +++ b/src/test/regress/sql/split_shard_replication_colocated_setup.sql @@ -125,4 +125,4 @@ select pg_sleep(5); SET search_path TO split_shard_replication_setup_schema; SELECT * from table_second_7; SELECT * from table_second_8; -SELECT * from table_second_9; \ No newline at end of file +SELECT * from table_second_9;