mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Revise the way the element allocator for a simplehash is specified.
This method is more elegant and more efficient. Per a suggestion from Andres Freund, who also briefly reviewed the patch.
This commit is contained in:
@@ -244,7 +244,7 @@ tbm_create_pagetable(TIDBitmap *tbm)
|
||||
Assert(tbm->status != TBM_HASH);
|
||||
Assert(tbm->pagetable == NULL);
|
||||
|
||||
tbm->pagetable = pagetable_create(tbm->mcxt, 128, NULL, NULL, NULL);
|
||||
tbm->pagetable = pagetable_create(tbm->mcxt, 128);
|
||||
|
||||
/* If entry1 is valid, push it into the hashtable */
|
||||
if (tbm->status == TBM_ONE_PAGE)
|
||||
|
Reference in New Issue
Block a user