1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

Documented all of the vars in the SM config file. Also add'l # parsing to Config.

Realized our Config class wouldn't handle tera- (T/t) processing but
no reason it shouldn't.  Ex, they want a 1TB cache, they can specify
'1t' as the cache_size.
This commit is contained in:
Patrick LeBlanc
2019-08-28 15:19:03 -05:00
parent fab69d1717
commit 2a78777e06
2 changed files with 73 additions and 20 deletions

View File

@@ -144,7 +144,9 @@ string expand_numbers(const boost::smatch &match)
long num = stol(match[1].str());
char suffix = (char) ::tolower(match[2].str()[0]);
if (suffix == 'g')
if (suffix == 't')
num <<= 40;
else if (suffix == 'g')
num <<= 30;
else if (suffix == 'm')
num <<= 20;