Skip to content

Commit

Permalink
Fix: set correct partitionId on storage summary (bloomberg#280)
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Malygin <[email protected]>
  • Loading branch information
678098 authored and alexander-e1off committed Oct 24, 2024
1 parent 285d209 commit f857157
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/groups/mqb/mqbs/mqbs_filestore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7213,6 +7213,10 @@ void FileStore::getStorages(StorageList* storages,

void FileStore::loadSummary(mqbcmd::FileStore* fileStore) const
{
// PRECONDITIONS
BSLS_ASSERT_SAFE(fileStore);

fileStore->partitionId() = d_config.partitionId();
if (!isOpen()) {
fileStore->state() = mqbcmd::FileStoreState::CLOSED;
return; // RETURN
Expand All @@ -7223,8 +7227,7 @@ void FileStore::loadSummary(mqbcmd::FileStore* fileStore) const
return; // RETURN
}

fileStore->partitionId() = d_config.partitionId();
fileStore->state() = mqbcmd::FileStoreState::OPEN;
fileStore->state() = mqbcmd::FileStoreState::OPEN;
FileStorePrintUtil::loadSummary(&fileStore->summary(),
d_primaryNode_p,
d_primaryLeaseId,
Expand Down

0 comments on commit f857157

Please sign in to comment.