diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-06-08 21:07:17 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-06-08 21:07:17 -0400 |
commit | 6f6df7ff93c92f7917d46a0764d193d26f2ea9e9 (patch) | |
tree | d4a40226bb4e075587a6996d84c09495e53f404f /src/mongo/db/service_context.h | |
parent | 1c56f5dd262111f921203d403f54fedb18772792 (diff) | |
download | mongo-6f6df7ff93c92f7917d46a0764d193d26f2ea9e9.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.
This also removes the superfluous argument for `HostAndPort`, as
that was used to track whether the call was made from within the
`DbDirectClient` object itself or from the network -- a separate
bit in the `OperationContext` indicates that state.
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); |