Files
scylladb/utils
Vlad Zolotarov 945d26e4ee loading_cache: make iterator work on top of lru_list iterators instead of loading_shared_values'
Reloading may hold value in the underlying loading_shared_values while
the corresponding cache values have already been deleted.

This may create weird situations like this:

<populate cache with 10 entries>
cache.remove(key1);
for (auto& e : cache) {
    std::out << e << std::endl;
}

<all 10 entries are printed, including the one for "key1">

In order to avoid such situations we are going to make the loading_cache::iterator
to be a transform_iterator of lru_list::iterator instead of loading_shared_values::iterator
because lru_list contains entries only for cached items.

Signed-off-by: Vlad Zolotarov <vladz@scylladb.com>
2018-08-30 20:56:44 -04:00
..
2018-05-30 14:41:40 +02:00
2017-04-17 23:03:15 +03:00
2017-05-17 12:30:03 +03:00
2016-09-28 17:34:16 +03:00
2017-09-18 12:44:05 +02:00
2018-05-30 14:41:41 +02:00