Do not use LastTS for dummy offset. (#2700)

* Do not use LastTS for dummy offset.

LastTS could be random when using dummy start. That should not be used
in calculating offsets.

Also, do not push padding into sequence before init. Could have heppened
with dummy start.

* apply dummy offset before comparing to last

* refresh ref TS

* initialize codec munger on catch up forwarding
This commit is contained in:
Raja Subramanian
2024-05-03 18:56:01 +05:30
committed by GitHub
parent 674550ea16
commit 26c2f7cd9a
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ func (s *sequencer) pushPadding(extStartSNInclusive uint64, extEndSNInclusive ui
s.Lock()
defer s.Unlock()
if s.snRangeMap == nil {
if s.snRangeMap == nil || !s.initialized {
return
}