diff --git a/memstore/src/lib.rs b/memstore/src/lib.rs
index 93f4d9182..f014aba97 100644
--- a/memstore/src/lib.rs
+++ b/memstore/src/lib.rs
@@ -9,6 +9,8 @@ use std::collections::HashMap;
use std::fmt::Debug;
use std::io::Cursor;
use std::ops::RangeBounds;
+use std::sync::atomic::AtomicBool;
+use std::sync::atomic::Ordering;
use std::sync::Arc;
use std::sync::Mutex;
@@ -117,6 +119,11 @@ pub enum BlockOperation {
pub struct MemStore {
last_purged_log_id: RwLock