Skip to content

Commit

Permalink
Fix refreshing the kvstore cache
Browse files Browse the repository at this point in the history
Clearing the cache before refilling is kind of important...
  • Loading branch information
manuelm committed Sep 11, 2018
1 parent d7c2983 commit 95937b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/KVStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ KVStore::Error KVStore::FetchAll()
if (res.error)
return RESPONSE_ERROR;

m_cache.clear();
std::chrono::steady_clock::time_point now = std::chrono::steady_clock::now();
std::string::size_type key_beg = 0, key_end;
const std::string &s = res.content;
Expand Down

0 comments on commit 95937b1

Please sign in to comment.