imay commented on a change in pull request #2089: Change refactor and 
reorganize the file utils 
URL: https://github.com/apache/incubator-doris/pull/2089#discussion_r344162781
 
 

 ##########
 File path: be/src/olap/snapshot_manager.cpp
 ##########
 @@ -467,8 +471,9 @@ OLAPStatus SnapshotManager::_create_snapshot_files(
                 files_to_delete.push_back(full_file_path);
             }
             // remove all files
-            res = remove_files(files_to_delete);
-            if (res != OLAP_SUCCESS) {
+            ret = FileUtils::remove_paths(files_to_delete);
+            if (!ret.ok()) {
+                LOG(WARNING) << "remove paths failed. error: " << 
ret.to_string(); 
 
 Review comment:
   set res to error

----------------------------------------------------------------
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]

Reply via email to