aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpcpp/impl/codegen/server_context.h
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 /include/grpcpp/impl/codegen/server_context.h
parentc21eed05419c44911280e07d1f0af04eea6d60e5 (diff)
parent58e99b6377b7c0a897f57a337803ebfd0a3b759e (diff)
Merge pull request #16407 from ncteisen/lazy-metadata
Lazily Fill Metadata Map
Diffstat (limited to 'include/grpcpp/impl/codegen/server_context.h')
-rw-r--r--include/grpcpp/impl/codegen/server_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/grpcpp/impl/codegen/server_context.h b/include/grpcpp/impl/codegen/server_context.h
index 6314364db6..b58f029de9 100644
--- a/include/grpcpp/impl/codegen/server_context.h
+++ b/include/grpcpp/impl/codegen/server_context.h
@@ -294,7 +294,7 @@ class ServerContext {
CompletionQueue* cq_;
bool sent_initial_metadata_;
mutable std::shared_ptr<const AuthContext> auth_context_;
- internal::MetadataMap client_metadata_;
+ mutable internal::MetadataMap client_metadata_;
std::multimap<grpc::string, grpc::string> initial_metadata_;
std::multimap<grpc::string, grpc::string> trailing_metadata_;