Files
scylladb/tests
Botond Dénes 59cf9d9070 querier: fix evict_one() and evict_all_for_table()
Both of these have the same problem. They remove the to-be-evicted
entries from `_entries` but they don't unregister the `entry` from the
`read_concurrency_semaphore`. This results in the
`reader_concurrency_semaphore` being left with a dangling pointer to the
entries will trigger segfault when it tries to evict the associated
inactive reads.

Also add a unit test for `evict_all_for_table()` to check that it works
properly (`evict_one()` is only used in tests, so no dedicated test for
it).

Fixes: #3962

Signed-off-by: Botond Dénes <bdenes@scylladb.com>
Message-Id: <57001857e3791c6385721b624d33b667ccda2e7d.1544010868.git.bdenes@scylladb.com>
(cherry picked from commit 77dbc7d09a)
2018-12-06 11:38:44 +02:00
..
2018-06-25 09:21:47 +01:00
2018-04-29 11:03:21 +03:00
2018-02-14 14:15:59 -05:00
2018-06-15 09:56:45 +01:00
2018-07-25 13:16:06 +02:00
2018-07-18 12:28:06 +01:00
2018-05-22 16:52:58 +02:00