mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 21:26:28 +00:00
fix(quota): reconcile matching scanner usage (#6521)
This commit is contained in:
@@ -2145,6 +2145,13 @@ async fn replace_bucket_usage_memory_from_info_if_generation(data_usage_info: &D
|
||||
candidate.insert(preserved);
|
||||
continue;
|
||||
}
|
||||
if existing.authoritative && existing.dirty && bucket_usage_counts_match(&existing.usage, &candidate.get().usage)
|
||||
{
|
||||
// Matching core counts make the complete scanner snapshot
|
||||
// equivalent for every field tracked by process-local
|
||||
// mutations, even when its timestamp predates the request.
|
||||
continue;
|
||||
}
|
||||
if existing.authoritative && existing.usage_updated_at > usage_updated_at {
|
||||
candidate.insert(existing.clone());
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user