summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-30711: scope_guard rewrite, to avoid -Werror=noexcept-typeBilly Donahue2019-01-112-3/+3
| | | | | | | | Macro ON_BLOCK_EXIT(...) now takes a single callable, Some renames: Dismias -> dismiss MakeGuard => makeGuard
* SERVER-38838 Ensure JavaScript stack string isn't empty.Max Hirschhorn2019-01-091-0/+12
|
* SERVER-38510 Set moreToCome flag with OP_MSG writes from shellA. Jesse Jiryu Davis2019-01-071-3/+45
|
* SERVER-36644 remove AtomicWord typedefsBilly Donahue2019-01-072-2/+2
|
* SERVER-36902 Abort transaction on shell exit, try 2A. Jesse Jiryu Davis2019-01-034-5/+117
|
* Revert "SERVER-36902 Abort transaction on shell exit"Benety Goh2018-12-204-103/+5
| | | | This reverts commit 759846ffced5ef84734bd917a99061edf44dd786.
* Revert "SERVER-36902 Update jsTests for new shell transaction API"Daniel Gottlieb2018-12-202-15/+2
| | | | This reverts commit bf58b1ab2abfb2a3ab7a86c154f9f5954ed6f98c.
* SERVER-36902 Update jsTests for new shell transaction APIA. Jesse Jiryu Davis2018-12-202-2/+15
|
* SERVER-36902 Abort transaction on shell exitA. Jesse Jiryu Davis2018-12-204-5/+103
|
* SERVER-37527 Fix lifecycle management and clarify isDone->isSuccessSara Golemon2018-11-291-1/+1
|
* SERVER-36740 Sometimes crashes on windows don't provide a backtraceMark Benvenuto2018-11-212-0/+14
|
* SERVER-37124 Disambiguate DuplicateKey error and return keyPattern details ↵James Wahlin2018-11-161-0/+1
| | | | in errorInfo object
* SERVER-35212: Refactor shell code to enable default authentication database ↵Tyler Kaye2018-11-141-3/+2
| | | | as admin
* SERVER-37754 Remove duplicate copyright headersRamon Fernandez2018-10-251-26/+22
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-22102-2044/+2267
|
* SERVER-36272 Catch error in parsing values after % in URIsShreyas Kalyan2018-10-121-1/+1
|
* SERVER-37294 Remove dependency on clientdriver_network and transport_layer ↵Henrik Edin2018-10-041-1/+2
| | | | for embedded.
* SERVER-30773 optimize bsonWoCompare/bsonBinaryEqualablack122018-10-021-31/+24
|
* SERVER-30773 add functionality for bson element typesablack122018-09-261-6/+22
|
* SERVER-35154 Propagate JS exceptions through ScopedThread#join().Max Hirschhorn2018-09-187-32/+239
| | | | | | This makes it so that if the ScopedThread exited due to an uncaught JavaScript exception, then calling .join() or .returnData() on it throws a JavaScript exception with the error message and stacktrace intact.
* SERVER-37126 Always _runSafely in implscopeJason Carey2018-09-171-94/+85
| | | | Extends _runSafely use to all public methods on implscope
* SERVER-36094 Make DBClientBase::query() take an NamespaceStringOrUUIDMatthew Russotto2018-08-142-4/+9
|
* SERVER-33135 Remove metadata accessors from command reply APIsMathias Stearn2018-07-301-1/+0
| | | | | Now that OP_COMMAND is dead, all remaining implementations return the same BSONObj for data and metadata.
* SERVER-35847 Remove eval command and remove/update related tests/helpersSara Golemon2018-06-298-122/+20
|
* SERVER-35115 Separate dbclientinterface.h into several parts, one per class.Henrik Edin2018-06-298-11/+9
|
* SERVER-34770 Retry on JavaScript execution interruptions in stepdown suitesBen Caimano2018-06-082-24/+36
|
* SERVER-35115 Decouple DBDirectClient from networking clientsMathias Stearn2018-05-311-1/+1
|
* SERVER-35275 rename fail point FP macros, improve docsBilly Donahue2018-05-301-1/+1
|
* SERVER-35061: Javascript sleep should error on premature wakeSpencer Jackson2018-05-236-29/+38
|
* SERVER-28830 check for closed conn in cursorHandleFromIdJason Carey2018-05-031-0/+3
| | | | | | | | | The old implementation of DBCommandCursor used when running the shell with --readMode compatibility calls getConnection(which checks if the connection has been closed) to construct a DBClientCursor which it passes to setCursor. The new variant used with --readMode command calls setCursorHandle with the cursor ID. Check that we aren't closed in the new variant.
* SERVER-34580 Plumb commit time to commit handlers when availableJudah Schvimer2018-05-031-1/+1
|
* SERVER-31508: Make Javascript sleep interruptableSpencer Jackson2018-04-275-15/+32
|
* SERVER-34665 Update definition of retryable error in the mongo shell.Max Hirschhorn2018-04-272-3/+49
| | | | | | Also exposes a way to explicitly trigger retargeting before the next operation is run on the DBClientRS underlying a replica set connection by calling ReplicaSetMonitor::failedHost().
* SERVER-33980 Reduce dependencies for embedded commandsAndrew Morrow2018-03-291-0/+1
|
* SERVER-32824 Incorrect interpreterVersion() reported in mongo shellBen Caimano2018-03-201-1/+1
| | | | Switched hardcoded string to follow major version
* SERVER-33275 Remove `platform/unordered_`* headersADAM David Alan Martin2018-02-142-5/+2
| | | | | | These headers date from before C++11 support and the `::mongo::stdx::` namespace. They can be removed and uses of the names therein can be changed to `::mongo::stdx::unordered_`* forms.
* SERVER-32072 Always roundtrip dbrefs in the shellJason Carey2018-02-014-31/+83
| | | | | | | | dbrefs in the shell can see silent casts from int -> float due to a lack of special case logic that regular bson objects receive. For a fix, hook up the special lookup routines in js bsoninfo type into the js dbrefinfo types.
* SERVER-32065 support retryWrites URI param in shellKevin Albertson2018-01-312-0/+10
|
* SERVER-32094 support appname URI param in shellKevin Albertson2018-01-231-1/+2
|
* SERVER-32239 Lossless status throwing in JSJason Carey2018-01-1911-51/+315
| | | | | | Enable throwing of status without conversion to error reports in spidermonkey. This will enable throwing of sidecars and other rich data through js land.
* SERVER-32617 Fix code that reconstructs status with just code and stringMathias Stearn2018-01-173-12/+7
|
* SERVER-32587 Convert StaleConfigException to use ErrorExtraInfoMathias Stearn2018-01-171-0/+5
|
* SERVER-32683 JS JIT off by defaultJason Carey2018-01-171-1/+1
| | | | Turn off the spidermonkey jit by default.
* SERVER-31354 Support driver API for changeStreams in the shell.Siyuan Zhou2017-11-162-2/+15
|
* SERVER-31641 stop gossiping between shell clientsJason Carey2017-11-132-78/+1
| | | | Mongo client objects in the shell should not gossip cluster time.
* SERVER-31296 Update sessions, causal, and retryable in the mongo shell.Max Hirschhorn2017-11-082-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removes the initialClusterTime and initialOperationTime session options. * Enables causal consistency by default when using an explicit session. * Adds a --retryWrites command line option to the mongo shell for enabling retryable writes in the mongo shell. The retryWrites options to SessionOptions is left for convenience with testing. * Renames setClusterTime() to advanceClusterTime(), and adds a corresponding advanceOperationTime() method to DriverSession. * Enables assigning transaction numbers for write commands where ordered=false. * Prevents the mongo shell from sending afterClusterTime or assigning transaction numbers when talking to a stand-alone mongod. * Prevents the mongo shell from assigning transaction numbers when using an unacknowledged (w=0) writeConcern. * Changes DBClientRS to re-discover the current primary of the replica set when it receives an error code representing "not master" in addition to an error message representing "not master". * Adds a shellPrint() pretty-printer for SessionOptions and DriverSession instances so they no longer print out their entire object definition.
* SERVER-31828 endSession in js should end sessionsJason Carey2017-11-062-15/+2
| | | | | | | | | | | | endSessions is of the form { endSessions: [] }, not { endSessions: 1, lsids: []}. fix it up and add a test
* SERVER-31629 Replace ErrorCodes::fromInt() with ErrorCodes::Error()Mathias Stearn2017-11-022-3/+2
| | | | | No reason to have two ways to express the same thing, and we can't get rid of ErrorCodes::Error().
* SERVER-31456 Expose server type on Mongo connection object.Max Hirschhorn2017-10-142-1/+18
| | | | | | This makes it possible to prevent the mongo shell from gossiping a clusterTime to stand-alone mongod processes when the mongo shell is also connected to a replica set or a sharded cluster.
* SERVER-30848 make shell getMores use sessionsJason Carey2017-10-031-21/+18
| | | | | The shell should attach the logical session used to initiate cursors (via find or aggregate) and use it for successive getMores.