imay commented on a change in pull request #340: Fix bug of #307
URL: https://github.com/apache/incubator-doris/pull/340#discussion_r235642956
##########
File path: be/src/http/download_action.cpp
##########
@@ -47,16 +50,16 @@ const std::string TOKEN_PARAMETER = "token";
DownloadAction::DownloadAction(ExecEnv* exec_env, const
std::vector<std::string>& allow_dirs) :
_exec_env(exec_env),
- _download_type(NORMAL),
- _allow_paths(allow_dirs) {
-
+ _download_type(NORMAL) {
+ for (auto& dir : allow_dirs) {
+ _allow_paths.emplace_back(std::move(canonical(dir).string()));
Review comment:
`canonical(dir).string()` is already a rvalue, you needn't to call
`std::move`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]