summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-21 14:43:52 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-21 14:43:52 +0300
commitfc684f65711757846fda30b2f9779feade8f8912 (patch)
tree844183e20dd336e40b220cffe12daffa65d5feb3 /src/Cache.cpp
parentAdd close buttons to all dialogs (diff)
downloadnheko-fc684f65711757846fda30b2f9779feade8f8912.tar.xz
Require login when the cache format changes (regression on #444)
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index c720a537..372dd44a 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -32,7 +32,7 @@ //! Should be changed when a breaking change occurs in the cache format. //! This will reset client's data. -static const std::string CURRENT_CACHE_FORMAT_VERSION("2018.09.16"); +static const std::string CURRENT_CACHE_FORMAT_VERSION("2018.09.21"); static const std::string SECRET("secret"); static const lmdb::val NEXT_BATCH_KEY("next_batch"); @@ -673,7 +673,7 @@ Cache::isFormatValid() txn.commit(); if (!res) - return true; + return false; std::string stored_version(current_version.data(), current_version.size());