@@ -1613,8 +1613,7 @@ void StorageManager::do_replicaStateResponse(const EventWithData& event)
16131613 BSLS_ASSERT_SAFE (eventData.source ()->nodeId () ==
16141614 d_partitionInfoVec[partitionId].primary ()->nodeId ());
16151615
1616- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
1617- eventData.source ());
1616+ fileStore (partitionId).sendMessage (controlMsg, eventData.source ());
16181617
16191618 BALL_LOG_INFO << d_clusterData_p->identity ().description ()
16201619 << " : sent response " << controlMsg
@@ -1673,8 +1672,7 @@ void StorageManager::do_failureReplicaStateResponse(const EventWithData& event)
16731672 << eventData.source ()->nodeDescription () << " ." ;
16741673 }
16751674
1676- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
1677- eventData.source ());
1675+ fileStore (partitionId).sendMessage (controlMsg, eventData.source ());
16781676}
16791677
16801678void StorageManager::do_logFailureReplicaStateResponse (
@@ -1915,8 +1913,7 @@ void StorageManager::do_primaryStateResponse(const EventWithData& event)
19151913 response.partitionMaxFileSizes () = getSelfPartitionMaxFileSizes (
19161914 partitionId);
19171915
1918- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
1919- eventData.source ());
1916+ fileStore (partitionId).sendMessage (controlMsg, eventData.source ());
19201917
19211918 BALL_LOG_INFO << d_clusterData_p->identity ().description ()
19221919 << " : sent response " << controlMsg
@@ -1951,8 +1948,7 @@ void StorageManager::do_failurePrimaryStateResponse(const EventWithData& event)
19511948 response.code () = mqbi::ClusterErrorCode::e_NOT_PRIMARY;
19521949 response.message () = " Not a primary" ;
19531950
1954- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
1955- eventData.source ());
1951+ fileStore (partitionId).sendMessage (controlMsg, eventData.source ());
19561952
19571953 BALL_LOG_INFO << d_clusterData_p->identity ().description ()
19581954 << " Partition [" << partitionId
@@ -2181,8 +2177,7 @@ void StorageManager::do_replicaDataResponsePush(const EventWithData& event)
21812177 partitionId);
21822178 }
21832179
2184- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
2185- destNode);
2180+ fileStore (partitionId).sendMessage (controlMsg, destNode);
21862181
21872182 BALL_LOG_INFO << d_clusterData_p->identity ().description ()
21882183 << " Partition [" << partitionId << " ]: " << " Sent response "
@@ -2394,8 +2389,7 @@ void StorageManager::do_replicaDataResponseDrop(const EventWithData& event)
23942389 eventData.partitionSeqNumDataRange ().first ;
23952390 response.endSequenceNumber () = eventData.partitionSeqNumDataRange ().second ;
23962391
2397- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
2398- eventData.source ());
2392+ fileStore (partitionId).sendMessage (controlMsg, eventData.source ());
23992393
24002394 BALL_LOG_INFO << d_clusterData_p->identity ().description ()
24012395 << " Partition [" << partitionId << " ]: " << " Sent response "
@@ -2506,8 +2500,7 @@ void StorageManager::do_replicaDataResponsePull(const EventWithData& event)
25062500 eventData.partitionSeqNumDataRange ().first ;
25072501 response.endSequenceNumber () = eventData.partitionSeqNumDataRange ().second ;
25082502
2509- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
2510- destNode);
2503+ fileStore (partitionId).sendMessage (controlMsg, destNode);
25112504
25122505 BALL_LOG_INFO << d_clusterData_p->identity ().description ()
25132506 << " Partition [" << partitionId << " ]: Sent response "
@@ -2546,8 +2539,7 @@ void StorageManager::do_failureReplicaDataResponsePull(
25462539 status.code () = mqbi::ClusterErrorCode::e_STORAGE_FAILURE;
25472540 status.message () = " Failed to send data chunks" ;
25482541
2549- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
2550- destNode);
2542+ fileStore (partitionId).sendMessage (controlMsg, destNode);
25512543
25522544 BALL_LOG_INFO << d_clusterData_p->identity ().description ()
25532545 << " Partition [" << partitionId
@@ -3919,8 +3911,7 @@ void StorageManager::do_replicaDataResponseResize(const EventWithData& event)
39193911 response.partitionMaxFileSizes () = getSelfPartitionMaxFileSizes (
39203912 partitionId);
39213913
3922- d_clusterData_p->messageTransmitter ().sendMessageSafe (controlMsg,
3923- eventData.source ());
3914+ fileStore (partitionId).sendMessage (controlMsg, eventData.source ());
39243915
39253916 BALL_LOG_INFO << d_clusterData_p->identity ().description ()
39263917 << " Partition [" << partitionId << " ]: " << " Sent response "
0 commit comments