Skip to content

Commit

Permalink
Merge pull request #9080 from tamird/revert-streaming-snapshots
Browse files Browse the repository at this point in the history
Revert streaming snapshots
  • Loading branch information
tamird authored Sep 6, 2016
2 parents 51c0ea8 + d985d23 commit d63b41e
Show file tree
Hide file tree
Showing 18 changed files with 656 additions and 1,526 deletions.
1 change: 1 addition & 0 deletions roachpb/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

188 changes: 158 additions & 30 deletions roachpb/internal_raft.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions roachpb/internal_raft.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ message RaftSnapshotData {
// roundtripping through memory.
repeated bytes log_entries = 3;
}

// PartialRaftSnapshotData is used to avoid unmarshaling the entire raftpb.Snapshot
// twice, as only the RangeDescriptor is required the first time it is unmarshaled.
message PartialRaftSnapshotData {
optional RangeDescriptor range_descriptor = 1 [(gogoproto.nullable) = false];
}
6 changes: 1 addition & 5 deletions rpc/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ const (
// service.
func NewServer(ctx *Context) *grpc.Server {
opts := []grpc.ServerOption{
// The limiting factor for lowering the max message size is the fact
// that a single large kv can be sent over the network in one message.
// Our maximum kv size is unlimited, so we need this to be very large.
// TODO(peter,tamird): need tests before lowering
grpc.MaxMsgSize(math.MaxInt32),
grpc.MaxMsgSize(math.MaxInt32), // TODO(peter,tamird): need tests before lowering
}
if !ctx.Insecure {
tlsConfig, err := ctx.GetServerTLSConfig()
Expand Down
2 changes: 0 additions & 2 deletions storage/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d63b41e

Please sign in to comment.