mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
This trivial patch removes an unused variable. From Alvaro Herrera.
This commit is contained in:
parent
9a09248edd
commit
f2b6edeab8
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.148 2005/06/17 22:32:47 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.149 2005/06/24 01:06:26 neilc Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
@ -536,12 +536,10 @@ static bool
|
|||||||
ThereIsAtLeastOneUser(void)
|
ThereIsAtLeastOneUser(void)
|
||||||
{
|
{
|
||||||
Relation pg_shadow_rel;
|
Relation pg_shadow_rel;
|
||||||
TupleDesc pg_shadow_dsc;
|
|
||||||
HeapScanDesc scan;
|
HeapScanDesc scan;
|
||||||
bool result;
|
bool result;
|
||||||
|
|
||||||
pg_shadow_rel = heap_open(ShadowRelationId, AccessExclusiveLock);
|
pg_shadow_rel = heap_open(ShadowRelationId, AccessExclusiveLock);
|
||||||
pg_shadow_dsc = RelationGetDescr(pg_shadow_rel);
|
|
||||||
|
|
||||||
scan = heap_beginscan(pg_shadow_rel, SnapshotNow, 0, NULL);
|
scan = heap_beginscan(pg_shadow_rel, SnapshotNow, 0, NULL);
|
||||||
result = (heap_getnext(scan, ForwardScanDirection) != NULL);
|
result = (heap_getnext(scan, ForwardScanDirection) != NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user