bugfix: can't delete backup since it's base for non-existing PITR
@@ -284,6 +284,10 @@ func (p *PBM) PITRTimelinesSince(from primitive.Timestamp) (tlines []Timeline, e
}
func gettimelines(slices []OplogChunk) (tlines []Timeline) {
+ if len(slices) == 0 {
+ return
+ }
+
var tl Timeline
var prevEnd primitive.Timestamp
for _, s := range slices {
