aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-03-22 15:18:14 -0700
committerGravatar Yang Gao <yangg@google.com>2015-03-22 15:18:14 -0700
commit1205f6f534412f3e2deb88b86f66ae58b07aab8a (patch)
treee773fe1e8d74f3024c82022e3afb928f757f505b /src/cpp
parent10bb15cdd444777cf2dd47f8d7e4fb559c4ace8b (diff)
Set cq_ on servercontext
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/server/server.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpp/server/server.cc b/src/cpp/server/server.cc
index 5a4ca6915a..9dbf3392d8 100644
--- a/src/cpp/server/server.cc
+++ b/src/cpp/server/server.cc
@@ -107,6 +107,7 @@ class Server::SyncRequest GRPC_FINAL : public CompletionQueueTag {
request_payload_(mrd->request_payload_),
method_(mrd->method_) {
ctx_.call_ = mrd->call_;
+ ctx_.cq_ = &cq_;
GPR_ASSERT(mrd->in_flight_);
mrd->in_flight_ = false;
mrd->request_metadata_.count = 0;
@@ -364,6 +365,7 @@ class Server::AsyncRequest GRPC_FINAL : public CompletionQueueTag {
}
}
ctx->call_ = call_;
+ ctx->cq_ = cq_;
Call call(call_, server_, cq_);
if (orig_status && call_) {
ctx->BeginCompletionOp(&call);