We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d073157 commit 3b7735cCopy full SHA for 3b7735c
pbm/resync/rsync.go
@@ -331,19 +331,16 @@ func getAllRestoreMetaFromStorage(
331
return nil, errors.Wrap(err, "get physical restores list from the storage")
332
}
333
334
- var targets []storage.FileInfo
335
-
336
- if skipRestores && len(restoreMeta) > 0 {
+ targets := restoreMeta
+ if !includeRestores && len(restoreMeta) > 0 {
337
l.Debug("only processing last restore")
338
latest := restoreMeta[0]
339
- for _, f := range restoreMeta[1:] {
+ for _, f := range restoreMeta {
340
if f.Name > latest.Name {
341
latest = f
342
343
344
targets = []storage.FileInfo{latest}
345
- } else {
346
- targets = restoreMeta
347
348
349
rv := make([]*restore.RestoreMeta, 0, len(targets))
0 commit comments