mirror of https://github.com/citusdata/citus.git
Fix list length lookup in WorkerGetLiveNodeCount
parent
022fc7bbcb
commit
6e58067962
|
@ -303,7 +303,7 @@ uint32
|
||||||
WorkerGetLiveNodeCount(void)
|
WorkerGetLiveNodeCount(void)
|
||||||
{
|
{
|
||||||
List *workerNodeList = ActiveWorkerNodeList();
|
List *workerNodeList = ActiveWorkerNodeList();
|
||||||
uint32 liveWorkerCount = workerNodeList->length;
|
uint32 liveWorkerCount = list_length(workerNodeList);
|
||||||
|
|
||||||
return liveWorkerCount;
|
return liveWorkerCount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue