Skip to content

Commit

Permalink
explicitly delete old queue
Browse files Browse the repository at this point in the history
Signed-off-by: Lawrence Lee <[email protected]>
  • Loading branch information
theasianpianist committed Jan 10, 2025
1 parent 8091aca commit 729426d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/notificationconsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ void swss::NotificationConsumer::pop(std::string &op, std::string &data, std::ve
* Force the memory to be released by destroying existing queue and creating a new one.
*/
SWSS_LOG_INFO("Queue is empty, recreating");
m_queue.reset();
m_queue = nullptr;
m_queue = std::make_shared<std::queue<std::string>>();
}
Expand Down

0 comments on commit 729426d

Please sign in to comment.