Skip to content

Commit 8a69538

Browse files
committed
Increase DB_VERSION to force a database reindex
1 parent f946a6f commit 8a69538

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/new_index/db.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::path::Path;
55
use crate::config::Config;
66
use crate::util::Bytes;
77

8-
static DB_VERSION: u32 = 1;
8+
static DB_VERSION: u32 = 2;
99

1010
#[derive(Debug, Eq, PartialEq)]
1111
pub struct DBRow {
@@ -201,8 +201,8 @@ impl DB {
201201

202202
if config.light_mode {
203203
// append a byte to indicate light_mode is enabled.
204-
// we're not letting bincode serialize this so that the compatiblity bytes won't change
205-
// (and require a reindex) when light_mode is disabled. this should be chagned the next
204+
// we're not letting bincode serialize this so that the compatibility bytes won't change
205+
// (and require a reindex) when light_mode is disabled. this should be changed the next
206206
// time we bump DB_VERSION and require a re-index anyway.
207207
compatibility_bytes.push(1);
208208
}

0 commit comments

Comments
 (0)