summaryrefslogtreecommitdiff
path: root/src/backend/replication/slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/replication/slot.c')
-rw-r--r--src/backend/replication/slot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index 55c306e465..3861b8f583 100644
--- a/src/backend/replication/slot.c
+++ b/src/backend/replication/slot.c
@@ -1334,7 +1334,9 @@ SaveSlotToPath(ReplicationSlot *slot, const char *dir, int elevel)
return;
}
- /* Check CreateSlot() for the reasoning of using a crit. section. */
+ /*
+ * Check CreateSlotOnDisk() for the reasoning of using a critical section.
+ */
START_CRIT_SECTION();
fsync_fname(path, false);