Skip to content

Commit

Permalink
Optimize queueInfo variable declaration
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Petukhov <[email protected]>
  • Loading branch information
bbpetukhov committed Jan 16, 2025
1 parent dd8ff03 commit fd309e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1361,9 +1361,6 @@ bool SummaryProcessor::processJournalOpRecord(

void SummaryProcessor::outputResult()
{
// Check if queueInfo is present for queue key
bmqp_ctrlmsg::QueueInfo queueInfo(d_allocator_p);

if (d_processRecordTypes.d_message) {
if (d_foundMessagesCount == 0) {
d_ostream << "No messages found." << '\n';
Expand Down Expand Up @@ -1433,6 +1430,9 @@ void SummaryProcessor::outputResult()
}

const mqbu::StorageKey& queueKey = it->first;

// Check if queueInfo is present for queue key
bmqp_ctrlmsg::QueueInfo queueInfo(d_allocator_p);

// Get queue information contained in CSL file
const bool queueInfoPresent = d_queueMap.findInfoByKey(&queueInfo,
Expand Down

0 comments on commit fd309e9

Please sign in to comment.