aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2018-08-31 12:05:16 -0700
committerGravatar GitHub <noreply@github.com>2018-08-31 12:05:16 -0700
commit4e6ed86a04b48f87bd250ab9739a429e70e4fff6 (patch)
tree729e5856a9c012ecfd6e6c7d255e0ab18ef4bd3d /src
parentc21eed05419c44911280e07d1f0af04eea6d60e5 (diff)
parent58e99b6377b7c0a897f57a337803ebfd0a3b759e (diff)
Merge pull request #16407 from ncteisen/lazy-metadata
Lazily Fill Metadata Map
Diffstat (limited to 'src')
-rw-r--r--src/cpp/server/server_cc.cc3
-rw-r--r--src/cpp/server/server_context.cc1
2 files changed, 0 insertions, 4 deletions
diff --git a/src/cpp/server/server_cc.cc b/src/cpp/server/server_cc.cc
index 36c709eb45..b8ba7042d9 100644
--- a/src/cpp/server/server_cc.cc
+++ b/src/cpp/server/server_cc.cc
@@ -686,9 +686,6 @@ ServerInterface::BaseAsyncRequest::~BaseAsyncRequest() {
bool ServerInterface::BaseAsyncRequest::FinalizeResult(void** tag,
bool* status) {
- if (*status) {
- context_->client_metadata_.FillMap();
- }
context_->set_call(call_);
context_->cq_ = call_cq_;
internal::Call call(call_, server_, call_cq_,
diff --git a/src/cpp/server/server_context.cc b/src/cpp/server/server_context.cc
index 6f5bde0d9f..bf0c027cda 100644
--- a/src/cpp/server/server_context.cc
+++ b/src/cpp/server/server_context.cc
@@ -134,7 +134,6 @@ ServerContext::ServerContext(gpr_timespec deadline, grpc_metadata_array* arr)
compression_level_set_(false),
has_pending_ops_(false) {
std::swap(*client_metadata_.arr(), *arr);
- client_metadata_.FillMap();
}
ServerContext::~ServerContext() {