@@ -1081,8 +1081,8 @@ void ClusterOrchestrator::processNodeStatusAdvisory(
10811081 // may see that heartbeat after the first advisory.
10821082
10831083 bsl::vector<bmqp_ctrlmsg::PartitionPrimaryInfo> partitions;
1084- mqbc::ClusterUtil::loadPartitionsInfo (&partitions,
1085- * clusterState ());
1084+ d_stateManager_mp-> assignPartitions (
1085+ &partitions); // Should be no-op, but doesn't hurt
10861086 d_stateManager_mp->sendClusterState (
10871087 true , // sendPartitionPrimaryInfo
10881088 true , // sendQueuesInfo
@@ -1194,8 +1194,8 @@ void ClusterOrchestrator::processNodeStateChangeEvent(
11941194 << node->nodeDescription ();
11951195
11961196 bsl::vector<bmqp_ctrlmsg::PartitionPrimaryInfo> partitions;
1197- mqbc::ClusterUtil::loadPartitionsInfo (&partitions,
1198- * clusterState ());
1197+ d_stateManager_mp-> assignPartitions (
1198+ &partitions); // Should be no-op, but doesn't hurt
11991199 d_stateManager_mp->sendClusterState (
12001200 true , // sendPartitionPrimaryInfo
12011201 true , // sendQueuesInfo
@@ -1807,8 +1807,10 @@ void ClusterOrchestrator::processLeaderPassiveNotification(
18071807 }
18081808
18091809 // Self is an ACTIVE leader - broadcast 'LeaaderAdvisory'
1810+ // TODO Can just assign here; you will get same results
18101811 bsl::vector<bmqp_ctrlmsg::PartitionPrimaryInfo> partitions;
1811- mqbc::ClusterUtil::loadPartitionsInfo (&partitions, *clusterState ());
1812+ d_stateManager_mp->assignPartitions (
1813+ &partitions); // Should be no-op, but doesn't hurt
18121814 d_stateManager_mp->sendClusterState (true , // sendPartitionPrimaryInfo
18131815 true , // sendQueuesInfo
18141816 0 ,
0 commit comments