grpc 1.2.1.pre1-universal-darwin → 1.2.1.pre2-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03236ef0b5867d09b20c545f414cd2cd6460ed71
4
- data.tar.gz: 6718528cb48b3481af3314a80a8c07f7851652f9
3
+ metadata.gz: 9c8c57afcb1ac4db5dfce289b8559feb647fc0e8
4
+ data.tar.gz: 02d60f48e6b0710f942d4e6ab3c6e0129711fdbd
5
5
  SHA512:
6
- metadata.gz: 9cd5a330c55c27c55252df9fb3d69ddca814766bbe32dcb7a8790ea7056b84b367c214d28b5b33069788a10f5287cb5c23a9e32f2c970dce429e0a8b0e44a0ed
7
- data.tar.gz: e6e04ae13cfa381c2ac703bee9b7fbc35285d79e54e7f6a3bb0074d03cb2ddc88e070537d0b1644d264aeeaa35c8f73696d06606ffb44cd50e798b9e6351d1c1
6
+ metadata.gz: a70dadd0e72a286d40461de4c2640b6e009b025b011470d0b546a5abbd5dd71f5f3225a4ce502fe519f1e629ab82649ce5975507b1fa07b6ef86ab1a96d71979
7
+ data.tar.gz: 7bcc1e4f066805ff6e5a2096673e2b8bf0241933ec73777a1ed04a6f763bdc6610e4c19b80d4d697ed094fa8c9cc58221e43ddfa4e7201352303e28c672677c8
@@ -784,7 +784,7 @@ static VALUE grpc_run_batch_stack_build_result(run_batch_stack *st) {
784
784
  Only one operation of each type can be active at once in any given
785
785
  batch */
786
786
  static VALUE grpc_rb_call_run_batch(VALUE self, VALUE ops_hash) {
787
- run_batch_stack st;
787
+ run_batch_stack *st = NULL;
788
788
  grpc_rb_call *call = NULL;
789
789
  grpc_event ev;
790
790
  grpc_call_error err;
@@ -792,6 +792,7 @@ static VALUE grpc_rb_call_run_batch(VALUE self, VALUE ops_hash) {
792
792
  VALUE rb_write_flag = rb_ivar_get(self, id_write_flag);
793
793
  unsigned write_flag = 0;
794
794
  void *tag = (void*)&st;
795
+
795
796
  if (RTYPEDDATA_DATA(self) == NULL) {
796
797
  rb_raise(grpc_rb_eCallError, "Cannot run batch on closed call");
797
798
  return Qnil;
@@ -806,14 +807,16 @@ static VALUE grpc_rb_call_run_batch(VALUE self, VALUE ops_hash) {
806
807
  if (rb_write_flag != Qnil) {
807
808
  write_flag = NUM2UINT(rb_write_flag);
808
809
  }
809
- grpc_run_batch_stack_init(&st, write_flag);
810
- grpc_run_batch_stack_fill_ops(&st, ops_hash);
810
+ st = gpr_malloc(sizeof(run_batch_stack));
811
+ grpc_run_batch_stack_init(st, write_flag);
812
+ grpc_run_batch_stack_fill_ops(st, ops_hash);
811
813
 
812
814
  /* call grpc_call_start_batch, then wait for it to complete using
813
815
  * pluck_event */
814
- err = grpc_call_start_batch(call->wrapped, st.ops, st.op_num, tag, NULL);
816
+ err = grpc_call_start_batch(call->wrapped, st->ops, st->op_num, tag, NULL);
815
817
  if (err != GRPC_CALL_OK) {
816
- grpc_run_batch_stack_cleanup(&st);
818
+ grpc_run_batch_stack_cleanup(st);
819
+ gpr_free(st);
817
820
  rb_raise(grpc_rb_eCallError,
818
821
  "grpc_call_start_batch failed with %s (code=%d)",
819
822
  grpc_call_error_detail_of(err), err);
@@ -826,8 +829,9 @@ static VALUE grpc_rb_call_run_batch(VALUE self, VALUE ops_hash) {
826
829
  }
827
830
  /* Build and return the BatchResult struct result,
828
831
  if there is an error, it's reflected in the status */
829
- result = grpc_run_batch_stack_build_result(&st);
830
- grpc_run_batch_stack_cleanup(&st);
832
+ result = grpc_run_batch_stack_build_result(st);
833
+ grpc_run_batch_stack_cleanup(st);
834
+ gpr_free(st);
831
835
  return result;
832
836
  }
833
837
 
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -29,5 +29,5 @@
29
29
 
30
30
  # GRPC contains the General RPC module.
31
31
  module GRPC
32
- VERSION = '1.2.1.pre1'
32
+ VERSION = '1.2.1.pre2'
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1.pre1
4
+ version: 1.2.1.pre2
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf