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

Commit220ae48

Browse files
committed
Suppress compiler warning.
1 parent2aa6ad1 commit220ae48

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

‎src/backend/executor/execMain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
*
2929
* IDENTIFICATION
30-
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.146 2001/09/08 16:15:28 inoue Exp $
30+
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.147 2001/09/17 00:29:10 tgl Exp $
3131
*
3232
*-------------------------------------------------------------------------
3333
*/
@@ -1268,11 +1268,11 @@ ExecAppend(TupleTableSlot *slot,
12681268
* insert the tuple
12691269
*/
12701270
newId=heap_insert(resultRelationDesc,tuple);
1271-
setLastTid(&(tuple->t_self));
12721271

12731272
IncrAppended();
12741273
(estate->es_processed)++;
12751274
estate->es_lastoid=newId;
1275+
setLastTid(&(tuple->t_self));
12761276

12771277
/*
12781278
* process indices

‎src/backend/utils/adt/tid.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.26 2001/09/08 16:15:28 inoue Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.27 2001/09/17 00:29:10 tgl Exp $
1212
*
1313
* NOTES
1414
* input routine largely stolen from boxin().
@@ -124,11 +124,15 @@ tidne(PG_FUNCTION_ARGS)
124124
*
125125
*Maybe these implementations should be moved to another place
126126
*/
127-
staticItemPointerDataCurrent_last_tid= { {0,0},0};
128-
voidsetLastTid(constItemPointertid)
129-
{
130-
Current_last_tid=*tid;
131-
}
127+
128+
staticItemPointerDataCurrent_last_tid= { {0,0},0};
129+
130+
void
131+
setLastTid(constItemPointertid)
132+
{
133+
Current_last_tid=*tid;
134+
}
135+
132136
Datum
133137
currtid_byreloid(PG_FUNCTION_ARGS)
134138
{

‎src/include/access/heapam.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: heapam.h,v 1.67 2001/09/08 16:15:28 inoue Exp $
10+
* $Id: heapam.h,v 1.68 2001/09/17 00:29:10 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -205,7 +205,7 @@ extern void heap_endscan(HeapScanDesc scan);
205205
externHeapTupleheap_getnext(HeapScanDescscandesc,intbackw);
206206
externvoidheap_fetch(Relationrelation,Snapshotsnapshot,HeapTupletup,Buffer*userbuf,IndexScanDesciscan);
207207
externItemPointerheap_get_latest_tid(Relationrelation,Snapshotsnapshot,ItemPointertid);
208-
externvoidsetLastid(constItemPointertid);
208+
externvoidsetLastTid(constItemPointertid);
209209
externOidheap_insert(Relationrelation,HeapTupletup);
210210
externintheap_delete(Relationrelation,ItemPointertid,ItemPointerctid);
211211
externintheap_update(Relationrelation,ItemPointerotid,HeapTupletup,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp