Skip to content

Commit

Permalink
Update datafusion/src/execution/memory_manager.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
  • Loading branch information
yjshen and alamb authored Jan 12, 2022
1 parent 921874a commit 98e6980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/src/execution/memory_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ use std::fmt::{Debug, Display, Formatter};
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Condvar, Mutex, Weak};

static mut CONSUMER_ID: AtomicUsize = AtomicUsize::new(0);
static CONSUMER_ID: AtomicUsize = AtomicUsize::new(0);

fn next_id() -> usize {
unsafe { CONSUMER_ID.fetch_add(1, Ordering::SeqCst) }
CONSUMER_ID.fetch_add(1, Ordering::SeqCst)
}

/// Type of the memory consumer
Expand Down

0 comments on commit 98e6980

Please sign in to comment.