mirror of https://github.com/citusdata/citus.git
Refactor one helper function (#7562)
The code looks simpler and easier to read now.pull/7544/head^2
parent
8afa2d0386
commit
bf05bf51ec
|
@ -492,19 +492,7 @@ stop_metadata_sync_to_node(PG_FUNCTION_ARGS)
|
|||
bool
|
||||
ClusterHasKnownMetadataWorkers()
|
||||
{
|
||||
bool workerWithMetadata = false;
|
||||
|
||||
if (!IsCoordinator())
|
||||
{
|
||||
workerWithMetadata = true;
|
||||
}
|
||||
|
||||
if (workerWithMetadata || HasMetadataWorkers())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return !IsCoordinator() || HasMetadataWorkers();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue