Restore-DbaDatabase - Fix copy-only point-in-time chains#10428
Conversation
|
@claude this is an incredibly sensitive command. Please give it a xhigh effort review |
|
Claude finished @potatoqualitee's task in 6m 27s —— View job Claude's xhigh-effort review of
|
…e It blocks tests/CLAUDE.md forbids the -ForEach parameter on test blocks, so the copy-only terminal-log cases are now five explicit It blocks. The between-log case additionally asserts the pre-gap log stays in the chain. (do Select-DbaBackupInformation, Invoke-DbaAdvancedRestore, Restore-DbaDatabase) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Closes #10408
Summary
Fixes point-in-time restore-chain selection when the newest full backup is copy-only. Transaction log backups continue to reference the conventional full backup through
DatabaseBackupLSN, so comparing that value with the copy-only full's checkpoint LSN incorrectly rejected the terminal log.What changed
RestoreTimewithout relying onDatabaseBackupLSN.STOPATappears on only the finalRESTORE LOGstatement.Verification
Select-DbaBackupInformation.Tests.ps1: 64 passed, 0 failed.Select-DbaBackupInformation.ps1.git diff --check origin/development...HEAD: clean.Restore-DbaDatabaseSQL integration assertion requires the repository CI environment.Review note
Claude Opus/high review completed after merge with
VERDICT: CLEAN.