Skip to content

Commit

Permalink
kvserver: add missing err check in writeUnreplicatedSST
Browse files Browse the repository at this point in the history
Epic: none
Epic: CRDB-8035
  • Loading branch information
tbg committed Feb 13, 2023
1 parent 9d18c63 commit 43248a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kv/kvserver/replica_raftstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ func (r *Replica) applySnapshot(
unreplicatedSSTFile, nonempty, err := writeUnreplicatedSST(
ctx, r.ID(), r.ClusterSettings(), nonemptySnap.Metadata, hs, &r.raftMu.stateLoader.StateLoader,
)
if err != nil {
return err
}
if nonempty {
// TODO(itsbilal): Write to SST directly in unreplicatedSST rather than
// buffering in a MemFile first.
Expand Down

0 comments on commit 43248a5

Please sign in to comment.