Skip to content

Commit

Permalink
Update the MULTIPROCESS static when changing default options
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricedesre committed Mar 15, 2018
1 parent 5f40842 commit e268a43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/config/opts.rs
Expand Up @@ -911,6 +911,9 @@ lazy_static! {
}

pub fn set_defaults(opts: Opts) {
// Set the static to the new default value.
MULTIPROCESS.store(opts.multiprocess, Ordering::SeqCst);

unsafe {
assert!(DEFAULT_OPTIONS.is_null());
assert_ne!(DEFAULT_OPTIONS, INVALID_OPTIONS);
Expand Down

0 comments on commit e268a43

Please sign in to comment.