Skip to content

Commit

Permalink
Retain origin when reverting a snap into another
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Sep 9, 2024
1 parent 2244245 commit 14f4c52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/engine/strat_engine/thinpool/thinpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,10 +1330,11 @@ where
snap.uuid = origin.uuid;

let snap_origin = snap.origin;
snap.origin = None;
snap.origin = origin.origin;

assert!(!origin.merge.unwrap_or(false));
let snap_merge = snap.merge;
snap.merge = Some(false);
snap.merge = origin.merge;

let snap_name = snap.name;
snap.name = origin.name.to_owned();
Expand Down

0 comments on commit 14f4c52

Please sign in to comment.