Skip to content

Commit 99145cd

Browse files
committed
TMP
1 parent 653b931 commit 99145cd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/groups/mqb/mqbc/mqbc_storagemanager.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,8 @@ void StorageManager::processShutdownEventDispatched(int partitionId)
11451145
mqbs::FileStore* fs = d_fileStores[partitionId].get();
11461146
BSLS_ASSERT_SAFE(fs);
11471147

1148+
// TODO fs.execute(&clearPrimaryForPartition2 || &shutdownMyBro); Then
1149+
// dispatch e_STOPPED
11481150
EventData eventDataVec;
11491151
eventDataVec.emplace_back(d_clusterData_p->membership().selfNode(),
11501152
-1, // placeholder requestId
@@ -3911,6 +3913,8 @@ void StorageManager::stop()
39113913
d_isStarted = false;
39123914

39133915
for (size_t pid = 0; pid < d_fileStores.size(); ++pid) {
3916+
// TODO fs.execute(&clearPrimaryForPartition2 || &shutdownMyBro); Then
3917+
// dispatch e_STOPPED
39143918
EventData eventDataVec;
39153919
eventDataVec.emplace_back(d_clusterData_p->membership().selfNode(),
39163920
-1, // placeholder requestId
@@ -4202,6 +4206,13 @@ void StorageManager::setPrimaryForPartition(int partitionId,
42024206
partitionId < static_cast<int>(d_fileStores.size()));
42034207
BSLS_ASSERT_SAFE(primaryNode);
42044208

4209+
/** TODO Call:
4210+
PartitionInfo& pinfo = d_partitionInfoVec[partitionId];
4211+
pinfo.setPrimary(primaryNode);
4212+
pinfo.setPrimaryLeaseId(primaryLeaseId);
4213+
pinfo.setPrimaryStatus(bmqp_ctrlmsg::PrimaryStatus::E_PASSIVE);
4214+
*/
4215+
42054216
if (primaryNode->nodeId() ==
42064217
d_clusterData_p->membership().selfNode()->nodeId()) {
42074218
processPrimaryDetect(partitionId, primaryNode, primaryLeaseId);

0 commit comments

Comments
 (0)