grpc 1.2.1.pre1 → 1.2.1.pre2

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: 210d5851abb9539a5ef0b9ee48ec5c7873c99af1
4
- data.tar.gz: fff44d43a3444d9c04ec3ccbe2e00b39b6b95694
3
+ metadata.gz: 2093065a50de8372a0ed5055dbc009555c3818a3
4
+ data.tar.gz: 7c73006dc9ca2709c9bb59c272678d981f94d53a
5
5
  SHA512:
6
- metadata.gz: 82446a5b38485f523de8733c8268d9f61d0972a0fef1b026f734a27a67863d2919a6193d42f2018d74f11213873487192e3f3143b105f6c9c4c97d3491ef1148
7
- data.tar.gz: 2d8e175716214f4286a7c73c25dd7bf51c5214c68478d5d6d052a111fc3ea2eb850fbecf32cd537cd40bfbd2e308d73eda08cc69260ab3246677cd5f7490354e
6
+ metadata.gz: c1601f5044791f4daa9138074afa22414ab4f1d6fbb7799659f817b88d6f96bcd2afa7eedbd55196ec08eea22b580649b02851d6f3aa4f7f077aeac6aa051f90
7
+ data.tar.gz: 3e1ccc95b4650dd37656db447a60adc8a92947d0227d88ff74a4d9a3b0fcfa75405d414b9cd684ebffc48f968781176401e1a1202bd38b005452da09d3e675d6
data/Makefile CHANGED
@@ -412,8 +412,8 @@ Q = @
412
412
  endif
413
413
 
414
414
  CORE_VERSION = 3.0.0-dev
415
- CPP_VERSION = 1.2.1-pre1
416
- CSHARP_VERSION = 1.2.1-pre1
415
+ CPP_VERSION = 1.2.1-pre2
416
+ CSHARP_VERSION = 1.2.1-pre2
417
417
 
418
418
  CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
419
419
  CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
@@ -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
 
@@ -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: ruby
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