Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5a15bde

Browse files
committed
Remove unused BumpBlockIsValid macro
The bump allocator was recently added in29f6a95. Our otherallocators have a similar macro to this, but seemingly the version ofthe macro for those allocators is only used in places where the chunkheader is decoded. Since the bump allocator has no chunk header, noneof those functions exist for bump therefore macro is unused. Remove it.Reported-by: Peter EisentrautDiscussion:https://postgr.es/m/5f724fb2-96e1-4f36-b65b-47b337ad432e@eisentraut.org
1 parentc99ef18 commit5a15bde

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

‎src/backend/utils/mmgr/bump.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ struct BumpBlock
100100
#defineBumpIsValid(set) \
101101
(PointerIsValid(set) && IsA(set, BumpContext))
102102

103-
/*
104-
* BumpBlockIsValid
105-
*True iff block is valid block of a bump context
106-
*/
107-
#defineBumpBlockIsValid(block) \
108-
(PointerIsValid(block) && BumpIsValid((block)->context))
109-
110103
/*
111104
* We always store external chunks on a dedicated block. This makes fetching
112105
* the block from an external chunk easy since it's always the first and only

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp