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

Commita069840

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 parent4d4c008 commita069840

File tree

4 files changed

+319
-171
lines changed

4 files changed

+319
-171
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,18 +1378,12 @@ gistSplit(Relation r,
13781378
IndexTuple*lvectup,
13791379
*rvectup;
13801380
GistSplitVectorv;
1381-
GistEntryVector*entryvec;
13821381
inti;
13831382
SplitedPageLayout*res=NULL;
13841383

1385-
/* generate the item array */
1386-
entryvec=palloc(GEVHDRSZ+ (len+1)*sizeof(GISTENTRY));
1387-
entryvec->n=len+1;
1388-
13891384
memset(v.spl_lisnull, TRUE,sizeof(bool)*giststate->tupdesc->natts);
13901385
memset(v.spl_risnull, TRUE,sizeof(bool)*giststate->tupdesc->natts);
1391-
gistSplitByKey(r,page,itup,len,giststate,
1392-
&v,entryvec,0);
1386+
gistSplitByKey(r,page,itup,len,giststate,&v,0);
13931387

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp