Skip to content
Snippets Groups Projects

Fix CppCheck code quality issue: "Function parameter 'agentDetails' should be...

Merged Jorge Camarero Vera requested to merge jcamarer-main-patch-12687 into main
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -149,7 +149,7 @@ void GarbageCollector::checkHeartbeats(log::LogContext & lc) {
}
}
void GarbageCollector::cleanupDeadAgent(const std::string & address, std::list<log::Param> agentDetails, log::LogContext & lc) {
void GarbageCollector::cleanupDeadAgent(const std::string & address, const std::list<log::Param>& agentDetails, log::LogContext & lc) {
// We detected a dead agent. Try and take ownership of it. It could already be owned
// by another garbage collector.
// To minimize locking, take a lock on the agent and check its ownership first.
Loading