提交 8ae24a75 编写于 作者: B Bruce Momjian

update fixes.

上级 4a700021
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -349,8 +349,7 @@ rebuildheap(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex)
ScanDesc = index_beginscan(LocalOldIndex, false, 0, (ScanKey) NULL); ScanDesc = index_beginscan(LocalOldIndex, false, 0, (ScanKey) NULL);
while ((ScanResult = while ((ScanResult = index_getnext(ScanDesc, ForwardScanDirection)) != NULL)
index_getnext(ScanDesc, ForwardScanDirection)) != NULL)
{ {
HeapTid = &ScanResult->heap_iptr; HeapTid = &ScanResult->heap_iptr;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -644,11 +644,8 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer)
&skey); &skey);
} }
res = NULL;
do do
{ {
if (res)
pfree(res);
res = index_getnext(obj_desc->iscan, ForwardScanDirection); res = index_getnext(obj_desc->iscan, ForwardScanDirection);
if (res == (RetrieveIndexResult) NULL) if (res == (RetrieveIndexResult) NULL)
...@@ -668,7 +665,8 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer) ...@@ -668,7 +665,8 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer)
*/ */
tuple = heap_fetch(obj_desc->heap_r, SnapshotNow, tuple = heap_fetch(obj_desc->heap_r, SnapshotNow,
&(res->heap_iptr), buffer); &res->heap_iptr, buffer);
pfree(res);
} while (tuple == (HeapTuple) NULL); } while (tuple == (HeapTuple) NULL);
/* remember this tid -- we may need it for later reads/writes */ /* remember this tid -- we may need it for later reads/writes */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册