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

mcs-loadbrm.py now works with python 3.5 that is used by certain

deb-based distributions
This commit is contained in:
Roman Nozdrin
2020-10-21 13:23:11 +00:00
parent 721d62bea9
commit b7b851ccb2

View File

@ -76,13 +76,14 @@ if __name__ == '__main__':
config_root.find('./SystemConfig/DataFilePlugin').text = "libcloudio.so"
cs_config.write('/etc/columnstore/Columnstore.xml.loadbrm')
os.replace('/etc/columnstore/Columnstore.xml.loadbrm', '/etc/columnstore/Columnstore.xml') # atomic replacement
os.replace('/etc/columnstore/Columnstore.xml.loadbrm',
'/etc/columnstore/Columnstore.xml') # atomic replacement
# Single-node on S3
if storage.lower() == 's3' and not bucket.lower() == 'some_bucket' and pmCount == 1:
try:
if use_systemd:
args = ['su', '-s', '/bin/sh', '-c', f'smcat {brm}', 'mysql']
args = ['su', '-s', '/bin/sh', '-c', 'smcat {}'.format(brm), 'mysql']
else:
args = ['smcat', brm]