Merge pull request #18953 from soheilhy/ref-fix

Avoid copy on slice_ref.
pull/18956/head
Soheil Hassas Yeganeh 6 years ago committed by GitHub
commit 1ef80f46bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/slice/slice_internal.h

@ -222,7 +222,7 @@ inline uint32_t grpc_slice_refcount::Hash(const grpc_slice& slice) {
g_hash_seed);
}
inline grpc_slice grpc_slice_ref_internal(const grpc_slice& slice) {
inline const grpc_slice& grpc_slice_ref_internal(const grpc_slice& slice) {
if (slice.refcount) {
slice.refcount->Ref();
}

Loading…
Cancel
Save