Small cleanups.
This commit is contained in:
parent
4373c4d4fa
commit
0000a0c004
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.24 1999/02/21 03:48:28 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.25 1999/03/30 01:37:21 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* This file contains the high level access-method interface to the
|
* This file contains the high level access-method interface to the
|
||||||
@ -174,8 +174,7 @@ TransactionLogTest(TransactionId transactionId, /* transaction id to test */
|
|||||||
{
|
{
|
||||||
TransactionIdStore(transactionId, &cachedTestXid);
|
TransactionIdStore(transactionId, &cachedTestXid);
|
||||||
cachedTestXidStatus = xidstatus;
|
cachedTestXidStatus = xidstatus;
|
||||||
return (bool)
|
return (bool) (status == xidstatus);
|
||||||
(status == xidstatus);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/transsup.c,v 1.20 1999/02/13 23:14:47 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/transsup.c,v 1.21 1999/03/30 01:37:21 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* This file contains support functions for the high
|
* This file contains support functions for the high
|
||||||
@ -211,8 +211,7 @@ TransBlockGetXidStatus(Block tblock,
|
|||||||
* return the transaction status to the caller
|
* return the transaction status to the caller
|
||||||
* ----------------
|
* ----------------
|
||||||
*/
|
*/
|
||||||
return (XidStatus)
|
return (XidStatus) (bit1 | bit2);
|
||||||
(bit1 | bit2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/* --------------------------------
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.41 1999/03/23 05:40:59 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.42 1999/03/30 01:37:22 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* The PortalExecutorHeapMemory crap needs to be eliminated
|
* The PortalExecutorHeapMemory crap needs to be eliminated
|
||||||
@ -71,8 +71,7 @@ PortalCleanup(Portal portal)
|
|||||||
* ----------------
|
* ----------------
|
||||||
*/
|
*/
|
||||||
context = MemoryContextSwitchTo((MemoryContext) PortalGetHeapMemory(portal));
|
context = MemoryContextSwitchTo((MemoryContext) PortalGetHeapMemory(portal));
|
||||||
PortalExecutorHeapMemory = (MemoryContext)
|
PortalExecutorHeapMemory = (MemoryContext) PortalGetHeapMemory(portal);
|
||||||
PortalGetHeapMemory(portal);
|
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
* tell the executor to shutdown the query
|
* tell the executor to shutdown the query
|
||||||
@ -210,7 +209,7 @@ PerformPortalFetch(char *name,
|
|||||||
* ----------------
|
* ----------------
|
||||||
*/
|
*/
|
||||||
MemoryContextSwitchTo(
|
MemoryContextSwitchTo(
|
||||||
(MemoryContext) PortalGetHeapMemory(GetPortalByName(NULL)));
|
(MemoryContext) PortalGetHeapMemory(GetPortalByName(NULL)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------
|
/* --------------------------------
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* spi.c
|
* spi.c
|
||||||
* Server Programming Interface
|
* Server Programming Interface
|
||||||
*
|
*
|
||||||
* $Id: spi.c,v 1.35 1999/03/09 13:39:00 scrappy Exp $
|
* $Id: spi.c,v 1.36 1999/03/30 01:37:23 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -49,7 +49,7 @@ extern void ShowUsage(void);
|
|||||||
int
|
int
|
||||||
SPI_connect()
|
SPI_connect()
|
||||||
{
|
{
|
||||||
char pname[64];
|
char pname[64];
|
||||||
PortalVariableMemory pvmem;
|
PortalVariableMemory pvmem;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: c.h,v 1.52 1999/03/09 13:39:01 scrappy Exp $
|
* $Id: c.h,v 1.53 1999/03/30 01:37:28 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -57,10 +57,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __CYGWIN32__
|
|
||||||
#include <errno.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
* Section 1: bool, true, false, TRUE, FALSE
|
* Section 1: bool, true, false, TRUE, FALSE
|
||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user