mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Silence compiler warning about uninitialized variables. This initialization
is not necessary needed, but some compilers complain about it.
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.191 2010/01/06 05:31:13 itagaki Exp $
|
* $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.192 2010/01/06 11:25:39 itagaki Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -849,10 +849,16 @@ copy_heap_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex,
|
|||||||
* the visibility test.
|
* the visibility test.
|
||||||
*/
|
*/
|
||||||
if (OldIndex != NULL)
|
if (OldIndex != NULL)
|
||||||
|
{
|
||||||
|
heapScan = NULL;
|
||||||
indexScan = index_beginscan(OldHeap, OldIndex,
|
indexScan = index_beginscan(OldHeap, OldIndex,
|
||||||
SnapshotAny, 0, (ScanKey) NULL);
|
SnapshotAny, 0, (ScanKey) NULL);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
heapScan = heap_beginscan(OldHeap, SnapshotAny, 0, (ScanKey) NULL);
|
heapScan = heap_beginscan(OldHeap, SnapshotAny, 0, (ScanKey) NULL);
|
||||||
|
indexScan = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user