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 7cf59a6 commit b009df6Copy full SHA for b009df6
pkg/controller/perconaservermongodbrestore/physical.go
@@ -918,6 +918,10 @@ func (r *ReconcilePerconaServerMongoDBRestore) getLatestChunkTS(ctx context.Cont
918
return "", errors.Wrap(err, "unmarshal PBM status output")
919
}
920
921
+ if len(pbmStatus.Backups.Chunks.Timelines) < 1 {
922
+ return "", errors.New("no oplog chunks")
923
+ }
924
+
925
latest := pbmStatus.Backups.Chunks.Timelines[len(pbmStatus.Backups.Chunks.Timelines)-1].Range.End
926
ts := time.Unix(int64(latest), 0).UTC()
927
0 commit comments