Skip to content

Commit

Permalink
Merge branch 'oceanbase:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
oraclebird authored Jul 16, 2024
2 parents ccb0091 + a8718bc commit 548cff4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def upload_file(ssh_client, local_path, remote_path, stdio=None):
"""
stdio.verbose("Please wait a moment, upload file to server {0}, local file path {1}, remote file path {2}".format(ssh_client.get_name(), local_path, remote_path))
try:
ssh_client.upload(local_path, remote_path)
ssh_client.upload(remote_path, local_path)
except Exception as e:
stdio.error("Upload File Failed error: {0}".format(e))

Expand Down
2 changes: 0 additions & 2 deletions handler/analyzer/analyze_flt_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ def __get_offline_log_file(self, ssh_client, log_path, local_store_dir):
if self.flt_trace_id is not None and (len(log_name_list) > 0):
grep_cmd = "grep -e '{grep_args}' {log_file} > {local_store_path} ".format(grep_args=self.flt_trace_id, log_file=' '.join(log_name_list), local_store_path=local_store_path)
LocalClient(self.stdio).run(grep_cmd)
log_full_path = "{gather_path}/{log_name}".format(gather_path=log_path, log_name=self.flt_trace_id)
download_file(ssh_client, log_full_path, local_store_path, self.stdio)

def __get_log_name_list_offline(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion handler/gather/gather_obstack2.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __chmod_obstack2(self, ssh_client):

def __is_obstack_exists(self, ssh_client):
cmd = "test -e {file} && echo exists".format(file=const.OBSTACK2_DEFAULT_INSTALL_PATH)
stdout = ssh_client.exec_cmd(cmd)[0]
stdout = ssh_client.exec_cmd(cmd)
if stdout == 'exists':
return False
else:
Expand Down

0 comments on commit 548cff4

Please sign in to comment.