Skip to content

Commit a939bae

Browse files
bertvanlandeghempotatoqualitee
authored andcommitted
Fix log backup filtering to use End time instead of Start in Select-DbaBackupInformation (#9627)
1 parent b45f06a commit a939bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/Select-DbaBackupInformation.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function Select-DbaBackupInformation {
218218
}
219219

220220
if ($false -eq $IgnoreLogs) {
221-
$FilteredLogs = $DatabaseHistory | Where-Object { $_.Type -in ('Log', 'Transaction Log') -and $_.Start -lt $RestoreTime -and $_.LastLSN -ge $LogBaseLsn -and $_.FirstLSN -ne $_.LastLSN } | Sort-Object -Property LastLsn, FirstLsn
221+
$FilteredLogs = $DatabaseHistory | Where-Object { $_.Type -in ('Log', 'Transaction Log') -and $_.End -lt $RestoreTime -and $_.LastLSN -ge $LogBaseLsn -and $_.FirstLSN -ne $_.LastLSN } | Sort-Object -Property LastLsn, FirstLsn
222222
$GroupedLogs = $FilteredLogs | Group-Object -Property BackupSetID
223223
ForEach ($Group in $GroupedLogs) {
224224
$Log = $Group.group[0]

0 commit comments

Comments
 (0)