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 +4 -4
- data/Makefile +2 -2
- data/src/ruby/ext/grpc/rb_call.c +11 -7
- data/src/ruby/lib/grpc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2093065a50de8372a0ed5055dbc009555c3818a3
|
4
|
+
data.tar.gz: 7c73006dc9ca2709c9bb59c272678d981f94d53a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
416
|
-
CSHARP_VERSION = 1.2.1-
|
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)
|
data/src/ruby/ext/grpc/rb_call.c
CHANGED
@@ -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
|
-
|
810
|
-
|
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
|
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(
|
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(
|
830
|
-
grpc_run_batch_stack_cleanup(
|
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
|
|
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.
|
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-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|