aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/tcp_posix.cc
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-11-28 19:02:23 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2018-11-28 19:02:23 -0800
commit7cd7ecc941e921e02a280cb358001076d4469610 (patch)
treeb232449c40eacabbaf5ac433bca9edc5ef320442 /src/core/lib/iomgr/tcp_posix.cc
parent6697496a1dca9012375c8a00ac6acedaa42449d9 (diff)
Add the length of the buffer that is traced
Diffstat (limited to 'src/core/lib/iomgr/tcp_posix.cc')
-rw-r--r--src/core/lib/iomgr/tcp_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/tcp_posix.cc b/src/core/lib/iomgr/tcp_posix.cc
index 606bfce6e7..8f3403473e 100644
--- a/src/core/lib/iomgr/tcp_posix.cc
+++ b/src/core/lib/iomgr/tcp_posix.cc
@@ -634,8 +634,8 @@ static bool tcp_write_with_timestamps(grpc_tcp* tcp, struct msghdr* msg,
if (sending_length == static_cast<size_t>(length)) {
gpr_mu_lock(&tcp->tb_mu);
grpc_core::TracedBuffer::AddNewEntry(
- &tcp->tb_head, static_cast<int>(tcp->bytes_counter + length),
- tcp->outgoing_buffer_arg);
+ &tcp->tb_head, static_cast<uint32_t>(tcp->bytes_counter + length),
+ static_cast<uint32_t>(length), tcp->outgoing_buffer_arg);
gpr_mu_unlock(&tcp->tb_mu);
tcp->outgoing_buffer_arg = nullptr;
}