#189 fix memory calculation when Galera is disabled

This commit is contained in:
root 2016-04-18 10:59:50 +02:00
parent 612eea48fd
commit 86ad610b6c

View file

@ -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;