acelyc111 commented on code in PR #1477:
URL: 
https://github.com/apache/incubator-pegasus/pull/1477#discussion_r1202182238


##########
src/replica/disk_cleaner.cpp:
##########
@@ -67,14 +68,14 @@ const std::string kFolderSuffixBak = ".bak";
 const std::string kFolderSuffixOri = ".ori";
 const std::string kFolderSuffixTmp = ".tmp";
 
-error_s disk_remove_useless_dirs(const std::vector<std::string> &data_dirs,
+error_s disk_remove_useless_dirs(const std::vector<std::shared_ptr<dir_node>> 
&dir_nodes,

Review Comment:
   I don't think it's necessary. If supporting to remove dir_node from fs 
manager, we have to make sure it's safe to access the dir_node in 
disk_remove_useless_dirs() even if it has been removed, std::shared_ptr is safe 
in this case.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to