mirror of
https://gitlab.isc.org/isc-projects/kea.git
synced 2025-12-20 00:53:34 +08:00
[#4061] Added a lock in remove (CID 1662569)
This commit is contained in:
@@ -106,6 +106,7 @@ public:
|
||||
///
|
||||
/// @param xid Transaction id for which to search.
|
||||
void remove(const Xid& xid) {
|
||||
std::lock_guard<std::mutex> lck(mutex_);
|
||||
auto& xid_index = queries_.template get<1>();
|
||||
auto query = xid_index.find(xid);
|
||||
if (query != xid_index.end()) {
|
||||
|
||||
Reference in New Issue
Block a user