kangpinghuang commented on a change in pull request #1211: Change
FileDownloader to http client
URL: https://github.com/apache/incubator-doris/pull/1211#discussion_r288370468
##########
File path: be/src/olap/task/engine_batch_load_task.cpp
##########
@@ -316,11 +268,9 @@ AgentStatus EngineBatchLoadTask::_process() {
}
// Delete download file
- boost::filesystem::path
download_file_path(_downloader_param.local_file_path);
- if (boost::filesystem::exists(download_file_path)) {
- if (remove(_downloader_param.local_file_path.c_str()) == -1) {
- OLAP_LOG_WARNING("can not remove file: %s",
- _downloader_param.local_file_path.c_str());
+ if (boost::filesystem::exists(_local_file_path)) {
+ if (remove(_local_file_path.c_str()) == -1) {
Review comment:
```suggestion
if (remove(_local_file_path) == -1) {
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]