#267 Use set (sorted by std::greater) instead of unordered_set for new_ids

This commit is contained in:
Vladislav Dobromyslov 2022-01-28 02:58:20 -04:00
parent d4c7c97f4c
commit a5d6bcb825

View file

@ -34,10 +34,10 @@ namespace graphene { namespace db {
struct undo_state struct undo_state
{ {
unordered_map<object_id_type, unique_ptr<object> > old_values; unordered_map<object_id_type, unique_ptr<object> > old_values;
unordered_map<object_id_type, object_id_type> old_index_next_ids; unordered_map<object_id_type, object_id_type> old_index_next_ids;
std::unordered_set<object_id_type> new_ids; std::set<object_id_type, std::greater<object_id_type> > new_ids;
unordered_map<object_id_type, unique_ptr<object> > removed; unordered_map<object_id_type, unique_ptr<object> > removed;
}; };