Skip to content

Commit

Permalink
Increase DB_VERSION to force a database reindex
Browse files Browse the repository at this point in the history
  • Loading branch information
shesek committed Feb 20, 2024
1 parent 097f600 commit 6ff4fdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/new_index/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::path::Path;
use crate::config::Config;
use crate::util::{bincode, Bytes};

static DB_VERSION: u32 = 1;
static DB_VERSION: u32 = 2;

#[derive(Debug, Eq, PartialEq)]
pub struct DBRow {
Expand Down Expand Up @@ -201,8 +201,8 @@ impl DB {

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

0 comments on commit 6ff4fdd

Please sign in to comment.