aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/surface/alarm.c
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@sreek-dev.mtv.corp.google.com>2017-07-31 12:04:38 -0700
committerGravatar Sree Kuchibhotla <sreek@sreek-dev.mtv.corp.google.com>2017-07-31 12:04:38 -0700
commit9083ee13444e9e80d18058cd1e0bad6a69499be9 (patch)
treeba4e4b4bcf27d3b63c85dde06cfe7a5f644f57a2 /src/core/lib/surface/alarm.c
parentfc58bd827e222756eccf15be175b6a537ed07a2d (diff)
parent5a549d61407fc4926969deeb7f688315cbcc2d15 (diff)
Merge branch 'master' into fix-end2end-test
Diffstat (limited to 'src/core/lib/surface/alarm.c')
-rw-r--r--src/core/lib/surface/alarm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/surface/alarm.c b/src/core/lib/surface/alarm.c
index ef8405cca8..55934964f3 100644
--- a/src/core/lib/surface/alarm.c
+++ b/src/core/lib/surface/alarm.c
@@ -18,6 +18,7 @@
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
+#include <grpc/support/log.h>
#include "src/core/lib/iomgr/timer.h"
#include "src/core/lib/surface/completion_queue.h"
@@ -49,7 +50,7 @@ grpc_alarm *grpc_alarm_create(grpc_completion_queue *cq, gpr_timespec deadline,
alarm->cq = cq;
alarm->tag = tag;
- grpc_cq_begin_op(cq, tag);
+ GPR_ASSERT(grpc_cq_begin_op(cq, tag));
GRPC_CLOSURE_INIT(&alarm->on_alarm, alarm_cb, alarm,
grpc_schedule_on_exec_ctx);
grpc_timer_init(&exec_ctx, &alarm->alarm,