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

Commit0fd0f36

Browse files
committed
Document and clean up gistsplit.c.
Improve comments, rename some variables and functions, slightly simplifya couple of APIs, in an attempt to make this code readable by people otherthan its original author.Even though this is essentially just cosmetic, back-patch to all activebranches, because otherwise it's going to make back-patching future fixesin this file very painful.
1 parenta187c96 commit0fd0f36

File tree

4 files changed

+319
-170
lines changed

4 files changed

+319
-170
lines changed

‎src/backend/access/gist/gist.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,18 +1237,12 @@ gistSplit(Relation r,
12371237
IndexTuple*lvectup,
12381238
*rvectup;
12391239
GistSplitVectorv;
1240-
GistEntryVector*entryvec;
12411240
inti;
12421241
SplitedPageLayout*res=NULL;
12431242

1244-
/* generate the item array */
1245-
entryvec=palloc(GEVHDRSZ+ (len+1)*sizeof(GISTENTRY));
1246-
entryvec->n=len+1;
1247-
12481243
memset(v.spl_lisnull, TRUE,sizeof(bool)*giststate->tupdesc->natts);
12491244
memset(v.spl_risnull, TRUE,sizeof(bool)*giststate->tupdesc->natts);
1250-
gistSplitByKey(r,page,itup,len,giststate,
1251-
&v,entryvec,0);
1245+
gistSplitByKey(r,page,itup,len,giststate,&v,0);
12521246

12531247
/* form left and right vector */
12541248
lvectup= (IndexTuple*)palloc(sizeof(IndexTuple)* (len+1));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp