Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 220ae48

Browse files
committed
Suppress compiler warning.
1 parent 2aa6ad1 commit 220ae48

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

src/backend/executor/execMain.c

+2-2
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

+10-6
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-
static ItemPointerData Current_last_tid = { {0, 0}, 0};
128-
void setLastTid(const ItemPointer tid)
129-
{
130-
Current_last_tid = *tid;
131-
}
127+
128+
static ItemPointerData Current_last_tid = { {0, 0}, 0};
129+
130+
void
131+
setLastTid(const ItemPointer tid)
132+
{
133+
Current_last_tid = *tid;
134+
}
135+
132136
Datum
133137
currtid_byreloid(PG_FUNCTION_ARGS)
134138
{

src/include/access/heapam.h

+2-2
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
extern HeapTuple heap_getnext(HeapScanDesc scandesc, int backw);
206206
extern void heap_fetch(Relation relation, Snapshot snapshot, HeapTuple tup, Buffer *userbuf, IndexScanDesc iscan);
207207
extern ItemPointer heap_get_latest_tid(Relation relation, Snapshot snapshot, ItemPointer tid);
208-
extern void setLastid(const ItemPointer tid);
208+
extern void setLastTid(const ItemPointer tid);
209209
extern Oid heap_insert(Relation relation, HeapTuple tup);
210210
extern int heap_delete(Relation relation, ItemPointer tid, ItemPointer ctid);
211211
extern int heap_update(Relation relation, ItemPointer otid, HeapTuple tup,

0 commit comments

Comments
 (0)