diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-15 12:17:12 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-15 12:17:12 -0500 |
commit | 80e3a470ba46bc35fb1ec22d4e97126270f3d2b3 (patch) | |
tree | 59b7b62d114c0971f553d63351cb71b5b0350d72 /src/backend/commands/sequence.c | |
parent | 7cb964acb794078ef033cbf2e3a0e7670c8992a9 (diff) | |
download | postgresql-80e3a470ba46bc35fb1ec22d4e97126270f3d2b3.tar.gz postgresql-80e3a470ba46bc35fb1ec22d4e97126270f3d2b3.zip |
Minor comment corrections for sequence hashtable patch.
There were enough typos in the comments to annoy me ...
Diffstat (limited to 'src/backend/commands/sequence.c')
-rw-r--r-- | src/backend/commands/sequence.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index 17ef9c855a0..67b8a5dfaba 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -76,7 +76,7 @@ typedef struct SeqTableData typedef SeqTableData *SeqTable; -static HTAB *seqhashtab = NULL; /* hash table for SeqTable items */ +static HTAB *seqhashtab = NULL; /* hash table for SeqTable items */ /* * 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) Relation seqrel; bool found; + /* Find or create a hash table entry for this sequence */ if (seqhashtab == NULL) create_seq_hashtable(); elm = (SeqTable) hash_search(seqhashtab, &relid, HASH_ENTER, &found); /* - * Initalize the new hash table entry if it did not exist already. + * Initialize the new hash table entry if it did not exist already. * * NOTE: seqtable entries are stored for the life of a backend (unless - * explictly discarded with DISCARD). If the sequence itself is deleted + * explicitly discarded with DISCARD). If the sequence itself is deleted * then the entry becomes wasted memory, but it's small enough that this * should not matter. */ |