diff options
author | Alex Auvolat <alex@adnab.me> | 2021-02-23 19:11:02 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-02-23 19:11:02 +0100 |
commit | 55156cca9df6b6b9a117f5a7105c8ba6ded34f83 (patch) | |
tree | 12d1e27d8587771e01db0b83db812d3a98926bb4 /src/table/table.rs | |
parent | 40763fd749f36fe612f20f79ff7cac51252cc128 (diff) | |
download | garage-55156cca9df6b6b9a117f5a7105c8ba6ded34f83.tar.gz garage-55156cca9df6b6b9a117f5a7105c8ba6ded34f83.zip |
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
Diffstat (limited to 'src/table/table.rs')
-rw-r--r-- | src/table/table.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |