summaryrefslogtreecommitdiff
path: root/src/mongo/db/assemble_response.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-29552 Fold assembleResponse into ServiceEntryPointMongodAndrew Morrow2017-06-151-531/+0
|
* SERVER-29304 Exclude time spent blocking for awaitData from getMore latency ↵David Storch2017-06-141-3/+4
| | | | | | | | | | | | | | | | | | reporting. This change applies to various server diagnostics which include latency metrics: the slow query logs, the system.profile collection, top, global operation latency stats, and per-collection operation latency stats. The secs_running and microsecs_running fields reported in currentOp output, on the other hand, will include time spent blocking for awaitData. Furthermore, this change fixes the following: - getMore operations are no longer double-counted. - Lock acquisition times are now consistently included. This fixes a bug in which time spent acquiring locks was accidentally omitted in some cases.
* SERVER-29305 `DBDirectClient::call` uses OpContextADAM David Alan Martin2017-06-081-9/+4
| | | | | | | | | | | | | | | | 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.
* SERVER-29264 Move protocol agnostic logic from assemble_response to run_commandsMathias Stearn2017-06-071-140/+6
|
* SERVER-29264 Kill off rpc::RequestInterfaceMathias Stearn2017-06-071-18/+5
|
* SERVER-29253 Migrate cursor manager to the client cursor lib.ADAM David Alan Martin2017-06-051-1/+1
| | | | | | Putting `CursorManager` and `ClientCursor` in the same library allows us to remove a cycle exemption in cursor and to fully resolve mmap_v1 against dependencies.
* SERVER-29264 Replace RequestInterface with OpMsgRequest in mongod command ↵Mathias Stearn2017-05-301-10/+16
| | | | dispatch
* SERVER-28575 Profile entry for update/delete should contain entire raw ↵Tess Avitabile2017-05-231-1/+1
| | | | update/delete
* SERVER-29249 Move mongod-specific command logic to run_commands.cppMathias Stearn2017-05-171-3/+3
|
* SERVER-28508 OP_MSG in egress and mongodMathias Stearn2017-04-271-1/+47
|
* SERVER-28749 Unify ServiceEntryPointMongod and ServiceEntryPointMongosJonathan Reams2017-04-211-62/+43
|
* SERVER-28739 make the js scripting engine correctly verify that accessed ↵Esha Maharishi2017-04-141-1/+1
| | | | collections are unsharded
* SERVER-28304 Profiler level 2 should not filter on sample rateNick Zolnierz2017-04-061-1/+1
|
* SERVER-28303 Delete old OP_MSG codeMathias Stearn2017-03-201-14/+0
| | | | | It is been deprecated since at least 1.2 and was never supported in mongos. Deleting to make room for the new OP_MSG format.
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-71/+75
| | | | | | This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
* SERVER-27920 Fix incorrect locking of Client contextGeert Bosch2017-02-061-1/+1
|
* SERVER-4786 Allow specifying sample rate of slow queriesEvan Broder2017-01-261-2/+6
| | | | | | | | | | | | | Adds a sampleRate parameter to the profile command, a value on the interval [0, 1] which indicates which fraction of operations should be randomly sampled for profiling and logging. This allows users to reduce their slowms threshold or increase their profiling level with less performance impact on the system. Closes #1099 Signed-off-by: David Storch <david.storch@10gen.com>
* SERVER-23103 Move assembleResposne to its own libraryAndrew Morrow2016-12-141-0/+655