mirror of https://github.com/citusdata/citus.git
Fixes build error
parent
f8a332952d
commit
369756cfcb
|
@ -140,14 +140,16 @@ citus_internal_database_size(PG_FUNCTION_ARGS)
|
||||||
ClearResults(connection, failOnError);
|
ClearResults(connection, failOnError);
|
||||||
PG_RETURN_INT64(size);
|
PG_RETURN_INT64(size);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
/*
|
||||||
* Retrieves the groupId of a distributed database
|
* Retrieves the groupId of a distributed database
|
||||||
* using databaseOid from the pg_dist_database table.
|
* using databaseOid from the pg_dist_database table.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
GroupLookupFromDatabase(int64 databaseOid, bool missingOk)
|
GroupLookupFromDatabase(int64 databaseOid, bool missingOk)
|
||||||
{
|
{
|
||||||
ScanKeyData scanKey[1];
|
ScanKeyData scanKey[1];
|
||||||
int scanKeyCount = 1;
|
int scanKeyCount = 1;
|
||||||
Form_pg_dist_database databaseForm = NULL;
|
Form_pg_dist_database databaseForm = NULL;
|
||||||
|
@ -182,5 +184,4 @@ citus_internal_database_size(PG_FUNCTION_ARGS)
|
||||||
table_close(pgDistDatabase, NoLock);
|
table_close(pgDistDatabase, NoLock);
|
||||||
|
|
||||||
return groupId;
|
return groupId;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue