diff options
author | Sree Kuchibhotla <sreek@google.com> | 2016-04-26 11:30:52 -0700 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2016-04-26 11:30:52 -0700 |
commit | fd59e4e5f93b803487fafa5572be36ba50b76c9d (patch) | |
tree | f99c1e18db1bbd117c00fd90319db7007c558622 /src/core/ext/resolver/zookeeper/zookeeper_resolver.c | |
parent | 3714e302c06a907b7af42a478beae3321b07c70a (diff) | |
parent | c3d869ef5853c4cfad57b7d3694d5260eeb7ce75 (diff) |
Merge branch 'master' into stress_test_misc
Diffstat (limited to 'src/core/ext/resolver/zookeeper/zookeeper_resolver.c')
-rw-r--r-- | src/core/ext/resolver/zookeeper/zookeeper_resolver.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ext/resolver/zookeeper/zookeeper_resolver.c b/src/core/ext/resolver/zookeeper/zookeeper_resolver.c index 898632c3cd..deb4b9b1ef 100644 --- a/src/core/ext/resolver/zookeeper/zookeeper_resolver.c +++ b/src/core/ext/resolver/zookeeper/zookeeper_resolver.c @@ -299,7 +299,7 @@ static void zookeeper_get_children_node_completion(int rc, const char *value, address = zookeeper_parse_address(value, (size_t)value_len); if (address != NULL) { /** Further resolves address by DNS */ - grpc_resolve_address(address, NULL, zookeeper_dns_resolved, r); + grpc_resolve_address(&exec_ctx, address, NULL, zookeeper_dns_resolved, r); gpr_free(address); } else { gpr_log(GPR_ERROR, "Error in resolving a child node of %s", r->name); @@ -375,8 +375,10 @@ static void zookeeper_get_node_completion(int rc, const char *value, r->resolved_addrs->naddrs = 0; r->resolved_total = 1; /** Further resolves address by DNS */ - grpc_resolve_address(address, NULL, zookeeper_dns_resolved, r); + grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; + grpc_resolve_address(&exec_ctx, address, NULL, zookeeper_dns_resolved, r); gpr_free(address); + grpc_exec_ctx_finish(&exec_ctx); return; } |