Skip to content

Commit a367839

Browse files
authored
[AINode] Alter the authority of ainode folders (#16075)
1 parent 6fd3870 commit a367839

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

iotdb-core/ainode/ainode/core/ainode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def _check_path_permission():
6464
if not os.path.exists(system_path):
6565
try:
6666
os.makedirs(system_path)
67-
os.chmod(system_path, 0o777)
6867
except PermissionError as e:
6968
logger.error(e)
7069
raise e

iotdb-core/ainode/ainode/core/log.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,11 @@ def __init__(self, log_dir=AINODE_LOG_DIR):
9898
file_levels = AINODE_LOG_FILE_LEVELS
9999
if not os.path.exists(log_dir):
100100
os.makedirs(log_dir)
101-
os.chmod(log_dir, 0o777)
102101
for file_name in file_names:
103102
log_path = log_dir + "/" + file_name
104103
if not os.path.exists(log_path):
105104
f = open(log_path, mode="w", encoding="utf-8")
106105
f.close()
107-
os.chmod(log_path, 0o777)
108106
self.file_handlers = []
109107
for l in range(len(file_names)):
110108
self.file_handlers.append(

0 commit comments

Comments
 (0)