1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Change for loadbrm s3

This commit is contained in:
Jose Rojas
2020-07-27 17:41:24 -05:00
committed by GitHub
parent 6fa984f883
commit c755f375dd

View File

@ -45,12 +45,13 @@ if __name__ == '__main__':
bucket = 'some_bucket' bucket = 'some_bucket'
dbrmroot = config_root.find('./SystemConfig/DBRMRoot').text dbrmroot = config_root.find('./SystemConfig/DBRMRoot').text
pmCount = int(config_root.find('./SystemModuleConfig/ModuleCount3').text)
loadbrm = '/usr/bin/load_brm' loadbrm = '/usr/bin/load_brm'
brm_saves_current = '' brm_saves_current = ''
if storage.lower() == 's3' and not bucket.lower() == 'some_bucket': if storage.lower() == 's3' and not bucket.lower() == 'some_bucket' and pmCount == 1:
# load s3 # single-node w/ s3
cmd = 'systemctl start mcs-storagemanager' cmd = 'systemctl start mcs-storagemanager'
retcode = subprocess.call(cmd, shell=True) retcode = subprocess.call(cmd, shell=True)
if retcode < 0: if retcode < 0:
@ -74,7 +75,7 @@ if __name__ == '__main__':
# will happen when brm file does not exist # will happen when brm file does not exist
print('{} does not exist.'.format(brm), file=sys.stderr) print('{} does not exist.'.format(brm), file=sys.stderr)
else: else:
pmCount = int(config_root.find('./SystemModuleConfig/ModuleCount3').text)
brm = '{}_current'.format(dbrmroot) brm = '{}_current'.format(dbrmroot)
if pmCount > 1: if pmCount > 1: