Skip to content

Commit 98e6980

Browse files
yjshenalamb
andauthored
Update datafusion/src/execution/memory_manager.rs
Co-authored-by: Andrew Lamb <[email protected]>
1 parent 921874a commit 98e6980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/src/execution/memory_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ use std::fmt::{Debug, Display, Formatter};
2626
use std::sync::atomic::{AtomicUsize, Ordering};
2727
use std::sync::{Arc, Condvar, Mutex, Weak};
2828

29-
static mut CONSUMER_ID: AtomicUsize = AtomicUsize::new(0);
29+
static CONSUMER_ID: AtomicUsize = AtomicUsize::new(0);
3030

3131
fn next_id() -> usize {
32-
unsafe { CONSUMER_ID.fetch_add(1, Ordering::SeqCst) }
32+
CONSUMER_ID.fetch_add(1, Ordering::SeqCst)
3333
}
3434

3535
/// Type of the memory consumer

0 commit comments

Comments
 (0)