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

Change the debugging output prints to separate multi-node with local storage

and single-node with any type of storage
This commit is contained in:
Roman Nozdrin
2020-09-24 11:54:24 +00:00
parent 7f744470d7
commit 2af81ccd64

View File

@ -40,10 +40,15 @@ if __name__ == '__main__':
is_primary = False
# For multi-node with local storage or default installations
if (storage.lower() != 's3' and master_addr != default_addr) or \
master_addr == default_addr:
multi_with_local_storage = storage.lower() != 's3' and master_addr != default_addr
if multi_with_local_storage is True or master_addr == default_addr:
# This might be not a primary in a multi-node cluster but we are safe
# to save BRM locally
is_primary = True
print('Multi-node with local-storage detected.')
if multi_with_local_storage is True:
print('This is a multi-node installation with a local-storage.')
else:
print(' This is a single-node installation.')
else:
has_requests = False
try: