Skip to content

Commit

Permalink
fix(use-after-move) simple string moved
Browse files Browse the repository at this point in the history
Signed-off-by: pengyu <[email protected]>
  • Loading branch information
py023 committed Dec 28, 2023
1 parent 7b47a13 commit 48db20e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be/src/agent/task_worker_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ ReportWorker::ReportWorker(std::string name, const TMasterInfo& master_info, int
};

auto st = Thread::create("ReportWorker", _name, report_loop, &_thread);
CHECK(st.ok()) << name << ": " << st;
CHECK(st.ok()) << _name << ": " << st;
}

ReportWorker::~ReportWorker() {
Expand Down
2 changes: 1 addition & 1 deletion be/src/io/fs/s3_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ S3FileSystem::S3FileSystem(S3Conf&& s3_conf, std::string&& id)
}
}
_executor = Aws::MakeShared<Aws::Utils::Threading::PooledThreadExecutor>(
id.c_str(), config::s3_transfer_executor_pool_size);
_id.c_str(), config::s3_transfer_executor_pool_size);
}

S3FileSystem::~S3FileSystem() = default;
Expand Down

0 comments on commit 48db20e

Please sign in to comment.