summaryrefslogtreecommitdiff
path: root/src/mongo/rpc
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-40659 Add regression tests for wall clock time transmissionMaria van Keulen2019-04-191-0/+1
|
* SERVER-40078 Report lastCommitted wall clock timeMaria van Keulen2019-04-166-30/+80
|
* SERVER-40476 remove mongoutils::strBilly Donahue2019-04-099-10/+10
| | | | | | Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
* SERVER-40356 Make ConstDataRange constructable from any byte-like typeJonathan Reams2019-04-061-5/+5
|
* SERVER-39350 Make `opMsgRequestFromAnyProtocol` return owned request messagesKaloian Manassiev2019-04-032-1/+5
|
* SERVER-40357 expand all calls to MONGO_DISALLOW_COPYINGBilly Donahue2019-03-286-12/+14
| | | | | | | | | | | produced by: hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )" for f in "$hits"; do sed -i.orig ' s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/; ' $f done
* SERVER-39905 Migrate object_check set param to IDLSara Golemon2019-03-023-25/+47
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-1366-66/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-30711: scope_guard rewrite, to avoid -Werror=noexcept-typeBilly Donahue2019-01-112-2/+2
| | | | | | | | Macro ON_BLOCK_EXIT(...) now takes a single callable, Some renames: Dismias -> dismiss MakeGuard => makeGuard
* SERVER-36644 remove AtomicWord typedefsBilly Donahue2019-01-072-2/+2
|
* SERVER-37754 Remove duplicate copyright headersRamon Fernandez2018-10-251-26/+22
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-2267-679/+828
|
* SERVER-35679 General Interruption FacilityJason Carey2018-09-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for a generalized interruptibility facility in the server. This offers a generalized interruptibility facility, trialed in Future<T> and ProducerConsumerQueue<T>. It offers 3 major concepts: Notifyable: A type which can notified off-thread, causing a wake up from some kind of blocking wait Waitable: A type which is Notifyable, and also can perform work while in a ready-to-receive notification state. static methods offer support for running underneath condition_variable::wait's. The chief implementer is the transport layer baton type Interruptible: A type which can wait on condition variables, and offers: - deadlines. This means the type integrates some sort of clock source - interruptibility. This means the type offers a way of noticing that it should no longer run via status or exception Additionally, Interruptible's offer special scoped guards which offer - Exemption from interruption in a region defined by the lifetime of a guard object - Subsidiary deadlines which can trigger recursively, offering specialized timeout and status return support. The series of virtual types allows us to slice the interface between opCtx and future such that opctx can use future and future can use opctx. Additionally, cutting out more functionality allows us to flow a noop interruptibility type which unifies our waiting behind a common api.
* SERVER-36606: Add large OP_MSG audit integration testingSpencer Jackson2018-09-171-0/+71
|
* SERVER-5261 Include authentication information in currentOp outputJonathan Reams2018-09-147-168/+216
|
* SERVER-36299 Add integration test for exhaust with OP_MSGWilliam Schultz2018-09-071-0/+131
| | | | This reverts commit 2d79aaf6d2b65f0355fcaa5d368ec3c4f493495a.
* Revert "SERVER-36299 Add integration test for exhaust with OP_MSG"William Schultz2018-09-061-121/+0
| | | | This reverts commit 1fa70da99c004b19b21f182b8e65edf781411c5f.
* SERVER-36299 Add integration test for exhaust with OP_MSGWilliam Schultz2018-09-061-0/+121
|
* SERVER-36105 Implement server support for exhaust cursors in OP_MSGWilliam Schultz2018-08-211-0/+1
|
* SERVER-36463 bypass validation of dummy signatures for isMaster on the ↵Misha Tyulenev2018-08-132-2/+16
| | | | unauthenticated connections
* SERVER-33135 Remove metadata accessors from command reply APIsMathias Stearn2018-07-308-58/+17
| | | | | Now that OP_COMMAND is dead, all remaining implementations return the same BSONObj for data and metadata.
* SERVER-33135 collapse rpc libsMathias Stearn2018-07-301-44/+6
|
* SERVER-33135 Delete code for OP_COMMANDMathias Stearn2018-07-3021-1279/+43
|
* SERVER-36020 Redesign CursorResponseBuilder to allow usage of DocumentSequenceGregory Noma2018-07-241-0/+4
| | | | Co-authored-by: Anthony Roy <anthony.roy@10gen.com>
* Fix error codesGeert Bosch2018-07-121-1/+1
|
* SERVER-35460 Replaced CommandReplyBuilder with direct usage of ↵Anthony Roy2018-07-059-25/+149
| | | | | | ReplyBuilderInterface This is to provide access to DocumentSequence returns.
* SERVER-35655 Update FCV constants throughout server code.Blake Oler2018-07-022-12/+11
| | | | | | | | | SERVER-35169 Bump wire protocol version for 4.2. SERVER-35752 Ensure tests that rely on FCV pass after updating FCV constants. SERVER-35163 Unblacklist tests that expect FCV version to differ between "last-stable" and "latest." SERVER-34984 Update major_version_upgrade.js to call setFCV to the latest FCV. SERVER-35656 Ensure a 4.0 mongos crashes upon attempting to connect to an FCV 4.2 cluster. SERVER-35404 Re-enable the sharding_last_stable_mongos_and_mixed_shards suite.
* SERVER-35115 Separate dbclientinterface.h into several parts, one per class.Henrik Edin2018-06-296-6/+8
|
* SERVER-32198 Add support for an optional `vWanted` to StaleConfigInfoKaloian Manassiev2018-06-271-4/+14
|
* SERVER-35691 Cleanup StaleConfigInfo serializationKaloian Manassiev2018-06-272-8/+6
|
* SERVER-35691 Make all code paths returning StaleConfig error go through the ↵Kaloian Manassiev2018-06-222-1/+9
| | | | StaleConfigInfo serializer
* SERVER-34798 Remove ServiceContext subclasses and use new ServiceContext in ↵Andy Schwerin2018-06-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | every unit test. This patch does several loosely related and surprisingly hard to separate things. 1.) Make the ServiceContext class final 2.) Create a mechanism, called ConstructorActions, for running methods on ServiceContexts immediately after they're built and immediately before they're destroyed. 3.) Introduce / improve test fixture base classes for tests, giving them fresh ServiceContext instances for each test case. There is one fixture for tests that need a storage engine and another for those that do not. 4.) Make several remaining global variables SC decorations in support of (3) 5.) Replace many MONGO_INITIALIZERS that access getGlobalServiceContext with the new constructor-actions system, which is needed for (3.) 6.) Fix up tests to use the fixtures from (3) and fix tests that silently used different service contexts in together in a technically illegal fashion that now breaks. 7.) Utilize (2) as necessary to simplify initialization of new ServiceContexts, simplifying the fixtures in (3).
* SERVER-35272 Remove dependencies on ssl_manager and transport_layer from ↵Henrik Edin2018-06-071-1/+1
| | | | embedded when not dragged in by sharding.
* SERVER-35115 Decouple DBDirectClient from networking clientsMathias Stearn2018-05-311-2/+2
|
* SERVER-34345 replace ...WITH_VALIDATOR macros to ->withValidator syntax.Billy Donahue2018-05-151-19/+17
| | | | | | metaprogramming compactness mark unused auto pointer change is_same value use from {} to ::value
* SERVER-33008 Slice Authorization frameworkADAM David Alan Martin2018-05-111-2/+19
| | | | | | | | The Authorization framework was intertwined with many subsystems and needed to be properly abstracted in order to facilitate cutting down on certain unnecessary dependencies in some libraries. This also facilitates creating a reduced authorization framework for use in embedded builds.
* SERVER-34628 Really remove appendCommandStatusMathias Stearn2018-05-081-1/+1
| | | | | | | | | | All remaining callers are transitioned to some form of usassert. This was done with an elaborate set of vim macros to make this tractable. Therefore it should not be considered an example of the best way to write new code, just as an improvement on what was there before. In particular, I couldn't easily remove Status's that are named then only used once in uassertStatusOK, nor could I convert the pattern of checking a StatusWith<T>'s getStatus() then calling getValue() to just call uassertStatusOK(returnsStatusWith()).
* SERVER-34805 Refactor the network libraries and move messages types to ↵Andrew Morrow2018-05-0526-26/+2159
| | | | rpc/protocol
* SERVER-34141 Reset client metadata when missing in metadataMark Benvenuto2018-05-012-7/+25
|
* SERVER-32639 skip signing and validating clusterTime in arbitersMisha Tyulenev2018-04-121-1/+1
|
* SERVER-34179 refactor isGenericArgumentBilly Donahue2018-04-021-1/+2
| | | | | | | | | Remove the static tables floating around at namespace scope. break CommandHelpers::isGenericArgument into command_generic_argument library so it doesn't have to be inline. Some callers depend on it but would have a circularity if they actually added db/commands to their LIBDEPS.
* SERVER-18094 Add 'localOps' parameter to $currentOp to show local mongoS ↵Bernard Gorman2018-03-152-2/+21
| | | | operations
* SERVER-33437 Make Decorables not type-erased.ADAM David Alan Martin2018-03-021-2/+0
| | | | | | | | | | | | The current Decorable system type-erases the most derived (Decorated) type when registering Decorations. This is illegal as derived classes which are no longer standard-layout can have the `Decorable` base class reordered with respect to the base address of their storage. This also removes the "with-owner" forms of declaring a decoration, which caused problems with layout. The decoration handles have been modified to provide mechanisms to get back to the owner directly, given a pointer or reference to the decoration.
* SERVER-33260 Fix format of FCV-related IncompatibleServerVersion error messagesXiangyu Yao2018-02-271-6/+7
|
* SERVER-33260 Log more helpful messages for FCV-related ↵Xiangyu Yao2018-02-271-2/+11
| | | | IncompatibleServerVersion errors
* SERVER-32635 an old mongos server communicating with a fully upgraded ↵Dianna Hohensee2018-02-162-10/+26
| | | | cluster should crash
* SERVER-29908 Move sharding_task_executor under mongo/sKaloian Manassiev2018-02-021-0/+1
|
* SERVER-32463 Remove FCV dependent causal consistency codeJack Mulrow2018-01-191-16/+10
|
* SERVER-32617 Fix code that reconstructs status with just code and stringMathias Stearn2018-01-171-1/+2
|
* SERVER-32684 Make mongos write command objects hold Status directlyMathias Stearn2018-01-172-80/+36
|