From 55156cca9df6b6b9a117f5a7105c8ba6ded34f83 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 23 Feb 2021 19:11:02 +0100 Subject: Several changes in table_sync: - separate path for case of offloading a partition we don't store - use sync::Mutex instead of tokio::Mutex, make less fn's async --- src/table/table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/table/table.rs') diff --git a/src/table/table.rs b/src/table/table.rs index 300e400f..31241530 100644 --- a/src/table/table.rs +++ b/src/table/table.rs @@ -435,7 +435,7 @@ where let syncer = self.syncer.load_full().unwrap(); debug!("({}) Deleting range {:?} - {:?}", self.name, begin, end); - let mut count = 0; + let mut count: usize = 0; while let Some((key, _value)) = self.store.get_lt(end.as_slice())? { if key.as_ref() < begin.as_slice() { break; -- cgit v1.2.3