Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ef7c365

Browse files
committed
Ensure we use the correct spelling of "ensure"
We seem to have accidentally used "insure" in a few places. Correct that. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+Pv0biqrhA3pMhu40aDsj343mTsD75khKnHsLqR8P04f=Q@mail.gmail.com Backpatch-through: 12, oldest supported version
1 parent c396aca commit ef7c365

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/backend/access/heap/hio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ RelationGetBufferForTuple(Relation relation, Size len,
563563
* on, as cached in the BulkInsertState or relcache entry. If that
564564
* doesn't work, we ask the Free Space Map to locate a suitable page.
565565
* Since the FSM's info might be out of date, we have to be prepared to
566-
* loop around and retry multiple times. (To insure this isn't an infinite
566+
* loop around and retry multiple times. (To ensure this isn't an infinite
567567
* loop, we must update the FSM with the correct amount of free space on
568568
* each page that proves not to be suitable.) If the FSM has no record of
569569
* a page with enough free space, we give up and extend the relation.

src/backend/utils/misc/guc_tables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ struct config_bool ConfigureNamesBool[] =
10881088
{"fsync", PGC_SIGHUP, WAL_SETTINGS,
10891089
gettext_noop("Forces synchronization of updates to disk."),
10901090
gettext_noop("The server will use the fsync() system call in several places to make "
1091-
"sure that updates are physically written to disk. This insures "
1091+
"sure that updates are physically written to disk. This ensures "
10921092
"that a database cluster will recover to a consistent state after "
10931093
"an operating system or hardware crash.")
10941094
},

src/include/storage/buf_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ BufMappingPartitionLockByIndex(uint32 index)
212212
* is held. Thus buffer header lock holder can do complex updates of the
213213
* state variable in single write, simultaneously with lock release (cleaning
214214
* BM_LOCKED flag). On the other hand, updating of state without holding
215-
* buffer header lock is restricted to CAS, which insure that BM_LOCKED flag
215+
* buffer header lock is restricted to CAS, which ensures that BM_LOCKED flag
216216
* is not set. Atomic increment/decrement, OR/AND etc. are not allowed.
217217
*
218218
* An exception is that if we have the buffer pinned, its tag can't change

src/tools/pg_bsd_indent/indent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ main(int argc, char **argv)
608608

609609
parse(hd_type); /* let parser worry about if, or whatever */
610610
}
611-
ps.search_brace = btype_2; /* this should insure that constructs
611+
ps.search_brace = btype_2; /* this should ensure that constructs
612612
* such as main(){...} and int[]{...}
613613
* have their braces put in the right
614614
* place */

0 commit comments

Comments
 (0)