Skip to content

Commit c56ea19

Browse files
authored
[PBM-1249] after restore, start slicing from backup last write (#912)
1 parent 484a40a commit c56ea19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pbm/slicer/slicer.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ func (s *Slicer) Catchup(ctx context.Context) error {
112112

113113
return errors.Wrap(err, "get last chunk")
114114
}
115+
if lastRestore != nil && int64(lastChunk.EndTS.T) < lastRestore.StartTS {
116+
s.lastTS = lastBackup.LastWriteTS
117+
return nil
118+
}
115119

116120
if lastBackup.Type != defs.LogicalBackup {
117121
// the backup does not contain complete oplog to copy from

0 commit comments

Comments
 (0)