diff options
author | Craig Tiller <ctiller@google.com> | 2016-02-19 12:28:34 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-02-19 12:28:34 -0800 |
commit | de676268aae52a1b7500d7021b102cf737bdf8d6 (patch) | |
tree | dc8cd3c0c4569c0c28e9e1585e5c592cf715e792 /src/core/channel | |
parent | 9a8df281ad4d9003a25a304c32df189f9469b838 (diff) |
Reinstate sockpair tests
Diffstat (limited to 'src/core/channel')
-rw-r--r-- | src/core/channel/channel_stack_builder.c | 6 | ||||
-rw-r--r-- | src/core/channel/channel_stack_builder.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/core/channel/channel_stack_builder.c b/src/core/channel/channel_stack_builder.c index 3a095c5d7d..6db99d9270 100644 --- a/src/core/channel/channel_stack_builder.c +++ b/src/core/channel/channel_stack_builder.c @@ -37,6 +37,8 @@ #include <grpc/support/alloc.h> +int grpc_trace_channel_stack_builder = 0; + #define BEGIN_SENTINAL ((grpc_channel_filter *)1) #define END_SENTINAL ((grpc_channel_filter *)2) @@ -217,6 +219,7 @@ void *grpc_channel_stack_builder_finish(grpc_exec_ctx *exec_ctx, // count the number of filters size_t num_filters = 0; for (filter_node *p = builder->begin.next; p != &builder->end; p = p->next) { + gpr_log(GPR_DEBUG, "%d: %s", num_filters, p->filter->name); num_filters++; } @@ -245,9 +248,10 @@ void *grpc_channel_stack_builder_finish(grpc_exec_ctx *exec_ctx, // run post-initialization functions i = 0; for (filter_node *p = builder->begin.next; p != &builder->end; p = p->next) { - if (p->init != NULL) + if (p->init != NULL) { p->init(channel_stack, grpc_channel_stack_element(channel_stack, i), p->init_arg); + } i++; } diff --git a/src/core/channel/channel_stack_builder.h b/src/core/channel/channel_stack_builder.h index 4734c82260..8d7cf3e47e 100644 --- a/src/core/channel/channel_stack_builder.h +++ b/src/core/channel/channel_stack_builder.h @@ -135,4 +135,6 @@ void *grpc_channel_stack_builder_finish(grpc_exec_ctx *exec_ctx, // Destroy the builder without creating a channel stack void grpc_channel_stack_builder_destroy(grpc_channel_stack_builder *builder); +extern int grpc_trace_channel_stack_builder; + #endif |