[#4061] Added a lock in remove (CID 1662569)

This commit is contained in:
Francis Dupont
2025-11-28 11:21:31 +01:00
parent 5c9da62f20
commit cb7d33a485

View File

@@ -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()) {