Skip to content

Commit e143aad

Browse files
committed
Don't set datastore when global is set to 0
1 parent ce5bbc1 commit e143aad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/VWF/Utils.pm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,11 @@ sub _configure_shared_memory($chi_args, $config, $args) {
322322
$chi_args->{max_size} = $args->{'max_size'} || $config->{max_size} || 1024;
323323
}
324324

325-
sub _configure_memory($chi_args, $config) {
326-
$chi_args->{'global'} = $config->{'global'} // 1;
327-
if(!$chi_args->{'global'}) {
325+
sub _configure_memory($chi_args, $config)
326+
{
327+
if(exists $config->{'global'}) {
328+
$chi_args->{'global'} = $config->{'global'};
329+
} else {
328330
$chi_args->{'datastore'} = {};
329331
}
330332
}

0 commit comments

Comments
 (0)