diff options
author | 2014-12-10 15:28:27 -0800 | |
---|---|---|
committer | 2014-12-11 15:11:44 -0800 | |
commit | f962f5264b381febb37bc88c0955a031619bb8d9 (patch) | |
tree | 513e514a8f39209c925aa80323c7b41c6a2151b2 /src/core/channel/channel_stack.c | |
parent | a8fd44adf8855518ee1bc0cad1ee0a533323d9de (diff) |
Tell call/channel op handlers who is invoking them.
This change adds a parameter to all op handlers specifying the invoking filter.
It will be used to allow client_channel to distinguish which child channel is
disconnecting or going away.
Change on 2014/12/10 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81823231
Diffstat (limited to 'src/core/channel/channel_stack.c')
-rw-r--r-- | src/core/channel/channel_stack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/channel/channel_stack.c b/src/core/channel/channel_stack.c index a403db35c2..5ee412bf7d 100644 --- a/src/core/channel/channel_stack.c +++ b/src/core/channel/channel_stack.c @@ -180,12 +180,12 @@ void grpc_call_stack_destroy(grpc_call_stack *stack) { void grpc_call_next_op(grpc_call_element *elem, grpc_call_op *op) { grpc_call_element *next_elem = elem + op->dir; - next_elem->filter->call_op(next_elem, op); + next_elem->filter->call_op(next_elem, elem, op); } void grpc_channel_next_op(grpc_channel_element *elem, grpc_channel_op *op) { grpc_channel_element *next_elem = elem + op->dir; - next_elem->filter->channel_op(next_elem, op); + next_elem->filter->channel_op(next_elem, elem, op); } grpc_channel_stack *grpc_channel_stack_from_top_element( |