forked from apache/incubator-pegasus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve the single-responsibility of class fs_manager (2/n) (…
…apache#1522) apache#1383 This patch moves some functions to fs_manager which are more reasonable to be responsibilities of class fs_manager rather than those of other classes, includeing: - remove `fs_manager::for_each_dir_node` - minimize some locks - rename `fs_manager::is_dir_node_available` to `fs_manager::is_dir_node_exist` - move `get_disk_infos` code to class `fs_manager` and encapsulate it as a function - move `validate_migrate_op` code to class `fs_manager` and encapsulate it as a function - move `disk_status_to_error_code` from replica_2pc.cpp to class `fs_manager`
- Loading branch information
Showing
6 changed files
with
150 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.