mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-02 18:28:11 +00:00
fix(logging): bound ECStore debug output (#6809)
Also replace deprecated Atomic::fetch_update calls with try_update so the current Rust toolchain keeps lint and CI jobs warning-clean. Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
@@ -192,7 +192,7 @@ impl MemorySnapshotCell {
|
||||
}
|
||||
if self
|
||||
.pending_release
|
||||
.fetch_update(Ordering::AcqRel, Ordering::Acquire, |pending| pending.checked_add(bytes))
|
||||
.try_update(Ordering::AcqRel, Ordering::Acquire, |pending| pending.checked_add(bytes))
|
||||
.is_err()
|
||||
{
|
||||
self.release_accounting_failed.store(true, Ordering::Release);
|
||||
|
||||
Reference in New Issue
Block a user