Skip to content
Snippets Groups Projects
Commit c43aa51f authored by David G. Quintas's avatar David G. Quintas Committed by GitHub
Browse files

Merge pull request #7984 from lizan/byte_buffer_compression

Fix grpc_byte_buffer_copy to copy compression algorithm
parents ba46906c a3570f22
No related branches found
No related tags found
No related merge requests found
...@@ -72,8 +72,9 @@ grpc_byte_buffer *grpc_raw_byte_buffer_from_reader( ...@@ -72,8 +72,9 @@ grpc_byte_buffer *grpc_raw_byte_buffer_from_reader(
grpc_byte_buffer *grpc_byte_buffer_copy(grpc_byte_buffer *bb) { grpc_byte_buffer *grpc_byte_buffer_copy(grpc_byte_buffer *bb) {
switch (bb->type) { switch (bb->type) {
case GRPC_BB_RAW: case GRPC_BB_RAW:
return grpc_raw_byte_buffer_create(bb->data.raw.slice_buffer.slices, return grpc_raw_compressed_byte_buffer_create(
bb->data.raw.slice_buffer.count); bb->data.raw.slice_buffer.slices, bb->data.raw.slice_buffer.count,
bb->data.raw.compression);
} }
GPR_UNREACHABLE_CODE(return NULL); GPR_UNREACHABLE_CODE(return NULL);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment