update fixes.
This commit is contained in:
parent
4a70002149
commit
8ae24a7566
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.28 1998/08/19 02:01:41 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.29 1998/08/20 22:24:10 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -349,8 +349,7 @@ rebuildheap(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex)
|
|||
|
||||
ScanDesc = index_beginscan(LocalOldIndex, false, 0, (ScanKey) NULL);
|
||||
|
||||
while ((ScanResult =
|
||||
index_getnext(ScanDesc, ForwardScanDirection)) != NULL)
|
||||
while ((ScanResult = index_getnext(ScanDesc, ForwardScanDirection)) != NULL)
|
||||
{
|
||||
|
||||
HeapTid = &ScanResult->heap_iptr;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.34 1998/08/19 02:02:38 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.35 1998/08/20 22:24:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -644,11 +644,8 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer)
|
|||
&skey);
|
||||
}
|
||||
|
||||
res = NULL;
|
||||
do
|
||||
{
|
||||
if (res)
|
||||
pfree(res);
|
||||
res = index_getnext(obj_desc->iscan, ForwardScanDirection);
|
||||
|
||||
if (res == (RetrieveIndexResult) NULL)
|
||||
|
@ -668,7 +665,8 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer)
|
|||
*/
|
||||
|
||||
tuple = heap_fetch(obj_desc->heap_r, SnapshotNow,
|
||||
&(res->heap_iptr), buffer);
|
||||
&res->heap_iptr, buffer);
|
||||
pfree(res);
|
||||
} while (tuple == (HeapTuple) NULL);
|
||||
|
||||
/* remember this tid -- we may need it for later reads/writes */
|
||||
|
|
Loading…
Reference in New Issue