Skip to content

Commit

Permalink
mqbblp::StorageMgr: Fix logging
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Jing Vincent Yan <[email protected]>
  • Loading branch information
kaikulimu committed Feb 5, 2025
1 parent d0ffa3b commit d3f6e8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/groups/mqb/mqbblp/mqbblp_storagemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,13 +796,15 @@ void StorageManager::processPartitionSyncEventDispatched(
return; // RETURN
}

if (source != d_recoveryManager_mp->primarySyncPeer(partitionId)) {
mqbnet::ClusterNode* syncPeer = d_recoveryManager_mp->primarySyncPeer(
partitionId);
if (source != syncPeer) {
BALL_LOG_ERROR << d_clusterData_p->identity().description()
<< " Partition [" << partitionId
<< "]: received a partition sync event from: "
<< source->nodeDescription()
<< ", while partition-sync peer is: "
<< source->nodeDescription();
<< syncPeer->nodeDescription();
return; // RETURN
}

Expand Down

0 comments on commit d3f6e8a

Please sign in to comment.