Skip to content

Commit e6da68a

Browse files
committed
Remove dynahash.h
All the callers of my_log2() are now limited inside dynahash.c, so let's remove this header. The same capability is provided by pg_bitutils.h already. Discussion: https://postgr.es/m/CAEZATCUJPQD_7sC-wErak2CQGNa6bj2hY-mr8wsBki=kX7f2_A@mail.gmail.com
1 parent b118726 commit e6da68a

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/backend/utils/hash/dynahash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
#include "port/pg_bitutils.h"
103103
#include "storage/shmem.h"
104104
#include "storage/spin.h"
105-
#include "utils/dynahash.h"
106105
#include "utils/memutils.h"
107106

108107

@@ -281,6 +280,7 @@ static bool init_htab(HTAB *hashp, int64 nelem);
281280
pg_noreturn static void hash_corrupted(HTAB *hashp);
282281
static uint32 hash_initial_lookup(HTAB *hashp, uint32 hashvalue,
283282
HASHBUCKET **bucketptr);
283+
static int my_log2(int64 num);
284284
static int64 next_pow2_int64(int64 num);
285285
static int next_pow2_int(int64 num);
286286
static void register_seq_scan(HTAB *hashp);
@@ -1813,7 +1813,7 @@ hash_corrupted(HTAB *hashp)
18131813
}
18141814

18151815
/* calculate ceil(log base 2) of num */
1816-
int
1816+
static int
18171817
my_log2(int64 num)
18181818
{
18191819
/*

src/include/utils/dynahash.h

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)