From cd9f3f94c482033c19d98aaeaad3fbbb85e7791f Mon Sep 17 00:00:00 2001 From: Piotr Jastrzebski Date: Mon, 27 Jun 2016 22:31:56 +0200 Subject: [PATCH] Fix row_cache::update Clear continuous flag on the last cache entry with key smaller than a partition being dropped from memtable on flush and not saved in cache. Signed-off-by: Piotr Jastrzebski Message-Id: <0b5293cc0bf8bb858e62aa8dd00ae7fe7a484380.1467059472.git.piotr@scylladb.com> --- row_cache.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/row_cache.cc b/row_cache.cc index d7c2481fdf..31b05f0875 100644 --- a/row_cache.cc +++ b/row_cache.cc @@ -757,6 +757,7 @@ future<> row_cache::update(memtable& m, partition_presence_checker presence_chec _tracker.insert(*entry); _partitions.insert(cache_i, *entry); } else { + --cache_i; cache_i->set_continuous(false); } i = m.partitions.erase(i);