Commit e45fa78
Copy-DbaDatabase - Fix SetSourceOffline to only run on successful copy
Only set source database offline when the copy operation succeeds.
Previously, the source database would be set offline even if the
restore failed due to insufficient disk space or other errors.
Fixes #9546
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Chrissy LeMaire <potatoqualitee@users.noreply.github.com>1 parent a6b1bf6 commit e45fa78
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1449 | 1449 | | |
1450 | 1450 | | |
1451 | 1451 | | |
1452 | | - | |
| 1452 | + | |
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
| |||
0 commit comments