diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-06-07 18:51:17 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-06-07 18:54:44 -0400 |
commit | 36351fdb8642bed4fd977e8234b6ff16cf5e7da2 (patch) | |
tree | db8c3b4dffe7b6cec187c78d2bd04217b2b3a7cd /src/mongo/db/service_context.h | |
parent | 4c3337abe512a37c8e4cb22e16eafcd04bc5bd3a (diff) | |
download | mongo-36351fdb8642bed4fd977e8234b6ff16cf5e7da2.tar.gz |
SERVER-29305 `dbdirectclient::call` uses OpContext
Presently it directly calls `assembleResponse`, which is responsible
for a cyclic dependency. This functionality is available through
the `ServiceContext` mechanism, and thus needn't directly use
`assembleResponse`.
The `ServiceEntryPoint` member of `ServiceContext` is set through
a setter, which isn't always called, so we initialize the global
entry through a factory function.
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r-- | src/mongo/db/service_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h index 566ed7fb650..c4f41bd5651 100644 --- a/src/mongo/db/service_context.h +++ b/src/mongo/db/service_context.h @@ -389,7 +389,7 @@ public: void setPreciseClockSource(std::unique_ptr<ClockSource> newSource); /** - * Binds the service entry point implementation to the service context + * Binds the service entry point implementation to the service context. */ void setServiceEntryPoint(std::unique_ptr<ServiceEntryPoint> sep); |