|
15 | 15 | * Replication slots are used to keep state about replication streams |
16 | 16 | * originating from this cluster. Their primary purpose is to prevent the |
17 | 17 | * premature removal of WAL or of old tuple versions in a manner that would |
18 | | - * interfere with replication; they also useful for monitoring purposes. |
| 18 | + * interfere with replication; they are also useful for monitoring purposes. |
19 | 19 | * Slots need to be permanent (to allow restarts), crash-safe, and allocatable |
20 | 20 | * on standbys (to support cascading setups). The requirement that slots be |
21 | 21 | * usable on standbys precludes storing them in the system catalogs. |
@@ -142,7 +142,7 @@ ReplicationSlotsShmemInit(void) |
142 | 142 | * Check whether the passed slot name is valid and report errors at elevel. |
143 | 143 | * |
144 | 144 | * Slot names may consist out of [a-z0-9_]{1,NAMEDATALEN-1} which should allow |
145 | | - * the name to be uses as a directory name on every supported OS. |
| 145 | + * the name to be used as a directory name on every supported OS. |
146 | 146 | * |
147 | 147 | * Returns whether the directory name is valid or not if elevel < ERROR. |
148 | 148 | */ |
@@ -290,7 +290,7 @@ ReplicationSlotCreate(const char *name, bool db_specific) |
290 | 290 | } |
291 | 291 |
|
292 | 292 | /* |
293 | | - * Find an previously created slot and mark it as used by this backend. |
| 293 | + * Find a previously created slot and mark it as used by this backend. |
294 | 294 | */ |
295 | 295 | void |
296 | 296 | ReplicationSlotAcquire(const char *name) |
@@ -743,7 +743,7 @@ CreateSlotOnDisk(ReplicationSlot *slot) |
743 | 743 |
|
744 | 744 | /* |
745 | 745 | * No need to take out the io_in_progress_lock, nobody else can see this |
746 | | - * slot yet, so nobody else wil write. We're reusing SaveSlotToPath which |
| 746 | + * slot yet, so nobody else will write. We're reusing SaveSlotToPath which |
747 | 747 | * takes out the lock, if we'd take the lock here, we'd deadlock. |
748 | 748 | */ |
749 | 749 |
|
@@ -780,7 +780,7 @@ CreateSlotOnDisk(ReplicationSlot *slot) |
780 | 780 | tmppath, path))); |
781 | 781 |
|
782 | 782 | /* |
783 | | - * If we'd now fail - really unlikely - we wouldn't know wether this slot |
| 783 | + * If we'd now fail - really unlikely - we wouldn't know whether this slot |
784 | 784 | * would persist after an OS crash or not - so, force a restart. The |
785 | 785 | * restart would try to fysnc this again till it works. |
786 | 786 | */ |
|
0 commit comments