Skip to content

Commit

Permalink
Fix usage of sealed flag for full backup (#160)
Browse files Browse the repository at this point in the history
* add test logs

* add test logs

* copy sealed flag

* remove log
  • Loading branch information
korotkov-aerospike authored Feb 28, 2024
1 parent 6dfceeb commit f6972be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/model/backup_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (p *BackupPolicy) CopySMDDisabled() *BackupPolicy {
MaxRecords: p.MaxRecords,
RecordsPerSecond: p.RecordsPerSecond,
FileLimit: p.FileLimit,
Sealed: p.Sealed,
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/service/backup_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (h *BackupHandler) fullBackupForNamespace(upperBound time.Time, namespace s
h.backend.CreateFolder(backupFolder)

options := shared.BackupOptions{}
if h.backupIncrPolicy.Sealed {
if h.backupFullPolicy.Sealed {
options.ModBefore = util.Ptr(upperBound.UnixNano())
}

Expand Down

0 comments on commit f6972be

Please sign in to comment.