aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-11-29 11:25:46 -0800
committerGravatar GitHub <noreply@github.com>2018-11-29 11:25:46 -0800
commit70f0d28835dc08985b8d77d19b08442cd3f0b15a (patch)
treeb55238e03a256e1bf78956e6348a4e4781e711bd /src/core
parent37ee7b664e7aca69952f76d6335a1ff899e0ef6f (diff)
parent93a165ec6ca6d05100492bee739ff918cd280c7a (diff)
Merge pull request #17333 from yashykt/tsinit
Initialize all other timestamps (non sendmsg) to gpr_inf_past
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lib/iomgr/buffer_list.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/buffer_list.cc b/src/core/lib/iomgr/buffer_list.cc
index e20dab15b1..ace17a108d 100644
--- a/src/core/lib/iomgr/buffer_list.cc
+++ b/src/core/lib/iomgr/buffer_list.cc
@@ -35,6 +35,9 @@ void TracedBuffer::AddNewEntry(TracedBuffer** head, uint32_t seq_no,
TracedBuffer* new_elem = New<TracedBuffer>(seq_no, arg);
/* Store the current time as the sendmsg time. */
new_elem->ts_.sendmsg_time = gpr_now(GPR_CLOCK_REALTIME);
+ new_elem->ts_.scheduled_time = gpr_inf_past(GPR_CLOCK_REALTIME);
+ new_elem->ts_.sent_time = gpr_inf_past(GPR_CLOCK_REALTIME);
+ new_elem->ts_.acked_time = gpr_inf_past(GPR_CLOCK_REALTIME);
if (*head == nullptr) {
*head = new_elem;
return;