diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-10 11:39:16 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-10 11:39:16 +0200 |
commit | 5de641700f4dc3ed71592f603b6dc24b2d9337a9 (patch) | |
tree | 0cdfd5478c45dee020179ef58b9ec12449cc8386 /src | |
parent | 92d912faef3c57380cf77d6d9fa7aa1d752fc4b2 (diff) | |
download | garage-5de641700f4dc3ed71592f603b6dc24b2d9337a9.tar.gz garage-5de641700f4dc3ed71592f603b6dc24b2d9337a9.zip |
Big whoopscounters
Diffstat (limited to 'src')
-rw-r--r-- | src/model/s3/object_table.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/s3/object_table.rs b/src/model/s3/object_table.rs index f3c8a3fb..a3914c36 100644 --- a/src/model/s3/object_table.rs +++ b/src/model/s3/object_table.rs @@ -317,9 +317,9 @@ impl CountedItem for Object { fn counts(&self) -> Vec<(&'static str, i64)> { let versions = self.versions(); let n_objects = if versions.iter().any(|v| v.is_data()) { - 0 - } else { 1 + } else { + 0 }; let n_unfinished_uploads = versions .iter() |