diff options
author | Vijay Pai <vpai@google.com> | 2018-10-31 01:02:07 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2018-10-31 01:02:07 -0700 |
commit | 932abf48a3fd0757a05bdbae4038c20fd521f312 (patch) | |
tree | 74c60a14a3d9e6b37de5def54ff51065a893e860 /src/cpp/common | |
parent | 2f47137a6e4dc05df4e09e47348aadbe21889d13 (diff) |
Address reviewer comments.
Diffstat (limited to 'src/cpp/common')
-rw-r--r-- | src/cpp/common/completion_queue_cc.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpp/common/completion_queue_cc.cc b/src/cpp/common/completion_queue_cc.cc index 6893201e2e..d93a54aed7 100644 --- a/src/cpp/common/completion_queue_cc.cc +++ b/src/cpp/common/completion_queue_cc.cc @@ -60,10 +60,10 @@ CompletionQueue::NextStatus CompletionQueue::AsyncNextInternal( case GRPC_QUEUE_SHUTDOWN: return SHUTDOWN; case GRPC_OP_COMPLETE: - auto cq_tag = static_cast<internal::CompletionQueueTag*>(ev.tag); + auto core_cq_tag = static_cast<internal::CompletionQueueTag*>(ev.tag); *ok = ev.success != 0; - *tag = cq_tag; - if (cq_tag->FinalizeResult(tag, ok)) { + *tag = core_cq_tag; + if (core_cq_tag->FinalizeResult(tag, ok)) { return GOT_EVENT; } break; @@ -87,9 +87,9 @@ bool CompletionQueue::CompletionQueueTLSCache::Flush(void** tag, bool* ok) { flushed_ = true; if (grpc_completion_queue_thread_local_cache_flush(cq_->cq_, &res_tag, &res)) { - auto cq_tag = static_cast<internal::CompletionQueueTag*>(res_tag); + auto core_cq_tag = static_cast<internal::CompletionQueueTag*>(res_tag); *ok = res == 1; - if (cq_tag->FinalizeResult(tag, ok)) { + if (core_cq_tag->FinalizeResult(tag, ok)) { return true; } } |