Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit80e3a47

Browse files
committed
Minor comment corrections for sequence hashtable patch.
There were enough typos in the comments to annoy me ...
1 parent7cb964a commit80e3a47

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/backend/commands/sequence.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ typedef struct SeqTableData
7676

7777
typedefSeqTableData*SeqTable;
7878

79-
staticHTAB*seqhashtab=NULL;/* hash table for SeqTable items */
79+
staticHTAB*seqhashtab=NULL;/* hash table for SeqTable items */
8080

8181
/*
8282
* last_used_seq is updated by nextval() to point to the last used
@@ -1022,16 +1022,17 @@ init_sequence(Oid relid, SeqTable *p_elm, Relation *p_rel)
10221022
Relationseqrel;
10231023
boolfound;
10241024

1025+
/* Find or create a hash table entry for this sequence */
10251026
if (seqhashtab==NULL)
10261027
create_seq_hashtable();
10271028

10281029
elm= (SeqTable)hash_search(seqhashtab,&relid,HASH_ENTER,&found);
10291030

10301031
/*
1031-
*Initalize the new hash table entry if it did not exist already.
1032+
*Initialize the new hash table entry if it did not exist already.
10321033
*
10331034
* NOTE: seqtable entries are stored for the life of a backend (unless
1034-
*explictly discarded with DISCARD). If the sequence itself is deleted
1035+
*explicitly discarded with DISCARD). If the sequence itself is deleted
10351036
* then the entry becomes wasted memory, but it's small enough that this
10361037
* should not matter.
10371038
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp