v70-amit.1.patch.txt
text/plain
Filename: v70-amit.1.patch.txt
Type: text/plain
Part: 0
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index 29749ce917..4eb679e187 100644
--- a/src/backend/replication/slot.c
+++ b/src/backend/replication/slot.c
@@ -1598,11 +1598,11 @@ ReportSlotInvalidation(ReplicationSlotInvalidationCause cause,
* Idle timeout invalidation is allowed only when:
*
* 1. Idle timeout is set
- * 2. Slot has WAL reserved
+ * 2. Slot has reserved WAL
* 3. Slot is inactive
- * 4. The slot is not being synced from the primary while the server
- * is in recovery. As synced slots are always considered to be inactive
- * because they don't perform logical decoding to produce changes.
+ * 4. The slot is not being synced from the primary while the server is in
+ * recovery. This is because synced slots are always considered to be
+ * inactive because they don't perform logical decoding to produce changes.
*/
static inline bool
CanInvalidateIdleSlot(ReplicationSlot *s)
@@ -1662,7 +1662,7 @@ InvalidatePossiblyObsoleteSlot(ReplicationSlotInvalidationCause cause,
if (cause == RS_INVAL_IDLE_TIMEOUT)
{
/*
- * Assign the current time here to reduce system call overhead
+ * Assign the current time here to avoid system call overhead
* while holding the spinlock in subsequent code.
*/
now = GetCurrentTimestamp();