SPARK-2024 Fix crash in md race

This commit is contained in:
Eric Harding committed 2019-02-12 09:33:53 -05:00
1 parent 8efd12588c
commit 7a7c1dcd89
1 file changed
+2 -2
+2 -2
View File
@@ -170,7 +170,7 @@ public:
if (_hot_depth) {
_hot_depth->all_entries([&](const HotDepthEntry& entry) {
auto iter = handles.find(entry.key);
if (iter != handles.end()) {
if (iter != handles.end() && iter->second.is_initialized()) {
iter->second.set_hot(&entry);
}
});
@@ -178,7 +178,7 @@ public:
else if (_hot){
_hot->all_entries([&](const HotEntry& entry) {
auto iter = handles.find(entry.key);
if (iter != handles.end()) {
if (iter != handles.end() && iter->second.is_initialized()) {
iter->second.set_hot(&entry);
}
});