From 8abbee134469c8a1d0471b376c5569c36b5d4a91 Mon Sep 17 00:00:00 2001 From: librelois Date: Tue, 18 May 2021 16:49:53 +0200 Subject: [PATCH] fix(indexer): current_blocks_chunk must be clear after compression --- indexer/src/blocks_chunks.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indexer/src/blocks_chunks.rs b/indexer/src/blocks_chunks.rs index 86318af..0cfeb00 100644 --- a/indexer/src/blocks_chunks.rs +++ b/indexer/src/blocks_chunks.rs @@ -54,7 +54,8 @@ pub fn apply_block_blocks_chunk( .map_err(|e| KvError::Custom(e.into()))?; } Ok(()) - }) + })?; + gva_db.current_blocks_chunk_write().clear() } /// Read and decompress bytes from file