Skip to content

Commit

Permalink
fix: data is not appended with committed streams
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrussello committed Feb 5, 2024
1 parent 2d5db00 commit 2c3bc06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/storage_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ func (s *storageWriteServer) appendRows(req *storagepb.AppendRowsRequest, msgDes
s.sendErrorMessage(stream, streamName, err)
return err
}
if err := tx.Commit(); err != nil {
s.sendErrorMessage(stream, streamName, err)
return err
}
} else {
status.rows = append(status.rows, data...)
}
Expand Down

0 comments on commit 2c3bc06

Please sign in to comment.