diff options
author | Yang Gao <yangg@google.com> | 2015-04-02 10:27:50 -0700 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-04-02 10:27:50 -0700 |
commit | e9866e977e625e5876ca3f1d61b606dfca74dc60 (patch) | |
tree | b7ee16ae399164fc238066983dd8d17cb585d117 /src | |
parent | b53af532afaf9458ea279d3a97e249bd59732f0f (diff) |
resolve comment
Diffstat (limited to 'src')
-rw-r--r-- | src/cpp/common/call.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpp/common/call.cc b/src/cpp/common/call.cc index b013f28ac3..e75e77e0b5 100644 --- a/src/cpp/common/call.cc +++ b/src/cpp/common/call.cc @@ -60,7 +60,7 @@ CallOpBuffer::CallOpBuffer() status_code_(GRPC_STATUS_OK), status_details_(nullptr), status_details_capacity_(0), - send_status_(false), + send_status_available_(false), send_status_code_(GRPC_STATUS_OK), trailing_metadata_count_(0), trailing_metadata_(nullptr), @@ -105,7 +105,7 @@ void CallOpBuffer::Reset(void* next_return_tag) { status_code_ = GRPC_STATUS_OK; - send_status_ = false; + send_status_available_ = false; send_status_code_ = GRPC_STATUS_OK; send_status_details_.clear(); trailing_metadata_count_ = 0; @@ -211,7 +211,7 @@ void CallOpBuffer::AddServerSendStatus( } else { trailing_metadata_count_ = 0; } - send_status_ = true; + send_status_available_ = true; send_status_code_ = static_cast<grpc_status_code>(status.code()); send_status_details_ = status.details(); } @@ -262,7 +262,7 @@ void CallOpBuffer::FillOps(grpc_op* ops, size_t* nops) { &status_details_capacity_; (*nops)++; } - if (send_status_) { + if (send_status_available_) { ops[*nops].op = GRPC_OP_SEND_STATUS_FROM_SERVER; ops[*nops].data.send_status_from_server.trailing_metadata_count = trailing_metadata_count_; |