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

Commitb38006e

Browse files
committed
Fix formula in _hash_spareindex.
This was correct in earlier versions of the patch that lead tocommitea69a0d, but somehow gotbroken in the last version which I actually committed.Mithun Cy, per an off-list report from Ashutosh SharmaDiscussion:http://postgr.es/m/CAD__OujbAwNU71v1y-RoQxZ8LZ6-V2UFTkex3v34MK6uZ3Xb5w@mail.gmail.com
1 parentea69a0d commitb38006e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/access/hash/hashutil.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ _hash_spareindex(uint32 num_bucket)
174174

175175
/* account for phases within current group */
176176
splitpoint_phases+=
177-
(((num_bucket-1) >> (HASH_SPLITPOINT_PHASE_BITS+1))&
177+
(((num_bucket-1) >>
178+
(splitpoint_group- (HASH_SPLITPOINT_PHASE_BITS+1)))&
178179
HASH_SPLITPOINT_PHASE_MASK);/* to 0-based value. */
179180

180181
returnsplitpoint_phases;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp