Require login when the cache format changes (regression on #444)
This commit is contained in:
parent
b0e3a7c7fa
commit
fc684f6571
2 changed files with 6 additions and 5 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue