Objects should be locked prior to looking up element

This commit is contained in:
Dan Paulat 2022-05-23 22:33:03 -05:00
parent 23337b3b21
commit b7aeecfe83

View file

@ -85,6 +85,8 @@ AwsLevel2DataProvider::FindKey(std::chrono::system_clock::time_point time)
std::string key {};
std::shared_lock lock(p->objectsMutex_);
std::optional<std::string> element =
util::GetBoundedElement(p->objects_, time);