#189 fix memory calculation when Galera is disabled
This commit is contained in:
parent
612eea48fd
commit
86ad610b6c
1 changed files with 4 additions and 1 deletions
|
@ -3093,7 +3093,10 @@ sub get_wsrep_options {
|
|||
return @galera_options;
|
||||
}
|
||||
sub get_gcache_memory {
|
||||
return get_wsrep_option 'gcache.mem_size';
|
||||
my $gCacheMem=get_wsrep_option('gcache.mem_size');
|
||||
|
||||
return 0 unless defined $gCacheMem and $gCacheMem ne '';
|
||||
return $gCacheMem;
|
||||
}
|
||||
sub get_wsrep_option {
|
||||
my $key=shift;
|
||||
|
|
Loading…
Reference in a new issue