Skip to content

Commit

Permalink
fix(restore): reset the kv.StreamId before sending to stream writer (#…
Browse files Browse the repository at this point in the history
…7833) (#7837)

Reset the StreamId for the schema key to prevent ordering issues.

(cherry picked from commit 9557e56)
  • Loading branch information
NamanJain8 authored May 19, 2021
1 parent 1fe99f2 commit 70812e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worker/restore_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ func (m *mapper) processReqCh(ctx context.Context) error {
return nil
}
}
// Reset the StreamId to prevent ordering issues while writing to stream writer.
kv.StreamId = 0
// Schema and type keys are not stored in an intermediate format so their
// value can be written as is.
kv.Key = restoreKey
Expand Down

0 comments on commit 70812e4

Please sign in to comment.