aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/common
diff options
context:
space:
mode:
authorGravatar Juanli Shen <aspirinsjl@gmail.com>2019-01-07 20:11:40 -0800
committerGravatar GitHub <noreply@github.com>2019-01-07 20:11:40 -0800
commit778be1186520e007980b7d113b23207301caef29 (patch)
tree74e2e8e6a8e9e88c3bb5388765f0afee870468d8 /src/cpp/common
parent8dcda4dc36aa4e4d3a4c46023f6470b4c1ec7bca (diff)
parent03431b4f696387e34d6c438069a42ce56e269f04 (diff)
Merge pull request #17629 from AspirinSJL/clean_sc_args
Remove filters from subchannel args
Diffstat (limited to 'src/cpp/common')
-rw-r--r--src/cpp/common/channel_filter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpp/common/channel_filter.h b/src/cpp/common/channel_filter.h
index 5e569c97e6..1a3295fc80 100644
--- a/src/cpp/common/channel_filter.h
+++ b/src/cpp/common/channel_filter.h
@@ -366,6 +366,11 @@ void ChannelFilterPluginShutdown();
/// The \a include_filter argument specifies a function that will be called
/// to determine at run-time whether or not to add the filter. If the
/// value is nullptr, the filter will be added unconditionally.
+/// If the channel stack type is GRPC_CLIENT_SUBCHANNEL, the caller should
+/// ensure that subchannels with different filter lists will always have
+/// different channel args. This requires setting a channel arg in case the
+/// registration function relies on some condition other than channel args to
+/// decide whether to add a filter or not.
template <typename ChannelDataType, typename CallDataType>
void RegisterChannelFilter(
const char* name, grpc_channel_stack_type stack_type, int priority,