diff --git a/src/index/updater.rs b/src/index/updater.rs index 76e6a6ecc9..c99d43b053 100644 --- a/src/index/updater.rs +++ b/src/index/updater.rs @@ -41,6 +41,10 @@ pub(crate) struct Updater { impl Updater { pub(crate) fn update(index: &Index) -> Result { + if index.height_limit == Some(0) { + return Ok(()); + } + let wtx = index.begin_write()?; let height = wtx