From 6ff4fdd9c209d0823a1431a028e543f610a5f5f1 Mon Sep 17 00:00:00 2001 From: Nadav Ivgi Date: Thu, 15 Feb 2024 15:19:19 +0200 Subject: [PATCH] Increase DB_VERSION to force a database reindex --- src/new_index/db.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/new_index/db.rs b/src/new_index/db.rs index 8d895050d..729d58d04 100644 --- a/src/new_index/db.rs +++ b/src/new_index/db.rs @@ -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 { @@ -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); }