diff options
author | Mark D. Roth <roth@google.com> | 2018-04-20 10:44:17 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2018-04-20 10:44:17 -0700 |
commit | 9635a04fed00cc1e9b72954cb3f72417b7f10e15 (patch) | |
tree | 0951982aa11a62c833384d36c15fe23dd346c879 /src/core/ext/filters/client_channel/retry_throttle.h | |
parent | a1459aa6ce2a11f8d11a067cb6c86e6af84ffd71 (diff) |
Work-around for ref-counted subclass deletion address problem.
Diffstat (limited to 'src/core/ext/filters/client_channel/retry_throttle.h')
-rw-r--r-- | src/core/ext/filters/client_channel/retry_throttle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/retry_throttle.h b/src/core/ext/filters/client_channel/retry_throttle.h index 2b6fa0a70b..fddafcd903 100644 --- a/src/core/ext/filters/client_channel/retry_throttle.h +++ b/src/core/ext/filters/client_channel/retry_throttle.h @@ -42,6 +42,10 @@ class ServerRetryThrottleData : public RefCounted<ServerRetryThrottleData> { intptr_t milli_token_ratio() const { return milli_token_ratio_; } private: + // So Delete() can call our private dtor. + template <typename T> + friend void grpc_core::Delete(T*); + ~ServerRetryThrottleData(); void GetReplacementThrottleDataIfNeeded( |