Minor comment corrections for sequence hashtable patch.
There were enough typos in the comments to annoy me ...
This commit is contained in:
parent
7cb964acb7
commit
80e3a470ba
@ -76,7 +76,7 @@ typedef struct SeqTableData
|
|||||||
|
|
||||||
typedef SeqTableData *SeqTable;
|
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
|
* 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;
|
Relation seqrel;
|
||||||
bool found;
|
bool found;
|
||||||
|
|
||||||
|
/* Find or create a hash table entry for this sequence */
|
||||||
if (seqhashtab == NULL)
|
if (seqhashtab == NULL)
|
||||||
create_seq_hashtable();
|
create_seq_hashtable();
|
||||||
|
|
||||||
elm = (SeqTable) hash_search(seqhashtab, &relid, HASH_ENTER, &found);
|
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
|
* 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
|
* then the entry becomes wasted memory, but it's small enough that this
|
||||||
* should not matter.
|
* should not matter.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user