Seaven commented on a change in pull request #2046: Changed replace NewStatus 
with Status
URL: https://github.com/apache/incubator-doris/pull/2046#discussion_r338411868
 
 

 ##########
 File path: be/src/olap/utils.cpp
 ##########
 @@ -1432,9 +1451,10 @@ OLAPStatus dir_walk(const string& root,
     struct dirent* direntp = NULL;
     dirp = opendir(root.c_str());
     if (dirp == nullptr) {
-        NewStatus status = IOError(strings::Substitute("opendir $0 failed", 
root), errno);
-        LOG(WARNING) << status.ToString();
-        if (status.IsDiskFailure()) {
+        Status status = disk_error("opendir failed", errno);
 
 Review comment:
   Yeah.
   1. Will remove the new_status file
   2. I will refactor the method in other issused

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to