Skip to content

Commit

Permalink
Remove redundant UUID lookup
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jul 24, 2024
1 parent 017f330 commit e5933ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/engine/strat_engine/pool/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,6 @@ impl Pool for StratPool {
fs_uuid: FilesystemUuid,
new_scheduled: bool,
) -> StratisResult<PropChangeAction<bool>> {
let (_, _) = self.get_filesystem(fs_uuid).ok_or_else(|| {
StratisError::Msg(format!("Filesystem with UUID {fs_uuid} not found"))
})?;
if self
.thin_pool
.set_fs_merge_scheduled(fs_uuid, new_scheduled)?
Expand Down
3 changes: 0 additions & 3 deletions src/engine/strat_engine/pool/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1207,9 +1207,6 @@ impl Pool for StratPool {
fs_uuid: FilesystemUuid,
new_scheduled: bool,
) -> StratisResult<PropChangeAction<bool>> {
let (_, _) = self.get_filesystem(fs_uuid).ok_or_else(|| {
StratisError::Msg(format!("Filesystem with UUID {fs_uuid} not found"))
})?;
if self
.thin_pool
.set_fs_merge_scheduled(fs_uuid, new_scheduled)?
Expand Down

0 comments on commit e5933ba

Please sign in to comment.