Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80e3a47

Browse files
committed
Minor comment corrections for sequence hashtable patch.
There were enough typos in the comments to annoy me ...
1 parent 7cb964a commit 80e3a47

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
typedef SeqTableData *SeqTable;
7878

79-
static HTAB *seqhashtab = NULL; /* hash table for SeqTable items */
79+
static HTAB *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
Relation seqrel;
10231023
bool found;
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)