summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/mongo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-68213 Modernize 'DBQuery' to avoid OP_QUERY-style formatDavid Storch2022-08-181-81/+16
|
* SERVER-68214 move session_catalog*, session*, logical_session* to ↵Shin Yee Tan2022-08-171-2/+2
| | | | mongo/db/session directory
* SERVER-66554 Make FLE2 suites work with stepdown and kill_primary suitesShreyas Kalyan2022-08-151-4/+14
|
* SERVER-68246 rewrite calls to boost::optional get and is_initializedBilly Donahue2022-07-271-1/+1
|
* SERVER-67824 Rename IDLParserErrorContext to IDLParserContextHugh Tong2022-07-261-2/+2
|
* SERVER-9434 Audit and Normalize Process Exit CodesMatt Kneiser2022-07-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Put all references to ExitCode enumerators under an enum class to namespace all the enumerators and avoid polluting the mongo namespace with possible naming collisions. - Added magic-number exit codes to exit_code.h like 50 & 51 (LauncherMiddleError & LauncherError respectively). - Reserved a range of exit codes to account for FreeBSD's usage of 64-78. - Renamed all enums with removal of EXIT_ which could conflict or get confused with built-in macros. - camelCased all ExitCode enum values. - Added the generic - ExitCode::fail - for returning 1 as failure. - Added explicit dependency on the exit_code.h header for all files using ExitCode's. - Removed all references to implementation-defined exit codes like EXIT_FAILURE and EXIT_SUCCESS. - Narrowed return values of the shell's undocumented quit() argument to portable values within 0-255, 0/ExitCode::clean otherwise. - Deprecated 8 unused ExitCode's - java - oomMalloc - oomRealloc - fs - clockSkew - windowsServiceStop - possibleCorruption - test - Wrapped the 2 Windows-only ExitCode's in #ifdef's - ntServiceError - windowsServiceStop
* SERVER-62206 Remove DBClientBase::query_DEPRECATED()David Storch2022-06-221-0/+1
| | | | | Also includes related simplifications to the implementation of 'DBClientCursor'.
* SERVER-67148 Refactor ValidatedTenantId into ValidatedSecurityTokenSara Golemon2022-06-151-3/+6
|
* SERVER-65955 Migrate shell exhaust path onto modern internal client APIDavid Storch2022-06-101-11/+51
| | | | | | | In doing so, this also fixes the shell's C++ native query path to correctly handle negative limit. The patch also includes additional preparatory work for deleting the query_DEPRECATED() internal client API.
* SERVER-63467 Create a shell helper that can be used to call compact ↵Erwin Pe2022-03-151-0/+7
| | | | encryption data
* SERVER-61008 Upgrade vendorized mozjs to esr91.3Justin Seyster2022-03-071-13/+14
| | | | Co-authored-by: Mohammad Dashti <mdashti@gmail.com>
* SERVER-58035 Remove db.runCommandWithMetadata from mongo shellBlake Oler2021-12-211-18/+0
|
* SERVER-61385 Migrate callers of 'DBClientBase::query()' legacy API to the ↵David Storch2021-12-211-8/+8
| | | | | | | | | modern 'find()' API There are a handful of remaining callers of the legacy API, either using the exhaust option or which are involved in a code path which still relies on the OP_QUERY-inspired BSON format. These should be cleaned up as follow-up work.
* SERVER-61403 Refactor doRunCommand implementationSara Golemon2021-11-121-9/+11
|
* SERVER-58210 Eliminate unnecessary RPC protocol negotiation codeDavid Storch2021-10-011-30/+0
|
* SERVER-58670 Tighten up what kind of BSON the 'Query' type can be wrapped aroundIrina Yatsenko2021-08-231-1/+3
| | | | | | | | | This refactor includes: Remove dead code from 'Query' type and reduce it public interface. Split query argument in query/update/removed methods into filter BSON and settings (which are still passed around as 'Query' type). Remove Query(string) constructors. Remove most callers of 'Query(const BSONObj&)'. Replace public 'Query(const BSON&)' and 'Query.obj' with an explicit factory method and a getter.
* SERVER-58703 Change internal client to only support the OP_MSG RPC protocolYoonsoo Kim2021-08-021-19/+0
|
* SERVER-57461 Remove SPLIT_LIMITED_SORT and associated QueryPlanner codeEric Cox2021-07-311-2/+2
|
* SERVER-58381 Define and process kind(2) in OP_MSG payloadSara Golemon2021-07-301-70/+79
|
* SERVER-57462 Change the shell to use OP_MSG for exhaust queries instead of ↵Yoonsoo Kim2021-07-151-37/+0
| | | | OP_QUERY
* SERVER-57457 Close connection on receiving of OP_DELETE, OP_INSERT, ↵Irina Yatsenko2021-07-081-141/+0
| | | | OP_UPDATE and OP_KILL_CURSORS
* SERVER-53605 Ensure replsettest.asCluster works with clusterAuthMode = x509Mark Benvenuto2021-05-031-0/+7
|
* SERVER-38938 include metadata in command responseRobert Guo2021-01-191-0/+6
|
* SERVER-43462 Remove cloneDatabase and copyDatabase shell helpersGeert Bosch2020-10-271-82/+0
|
* SERVER-50508 Rename ConnectionType::MASTER to ConnectionType::kStandaloneBen Caimano2020-10-261-1/+1
|
* SERVER-49380 Add API params to mongo shellA. Jesse Jiryu Davis2020-08-201-1/+33
|
* SERVER-46189 Fix shell kill current ops with TLS replica set and down nodesMark Benvenuto2020-05-181-1/+1
|
* SERVER-46696 mongo shell can end up creating multiple implicit sessions on ↵Randolph Tan2020-03-171-1/+2
| | | | the same replica set connection
* SERVER-42437 Make ReplicaSetMonitorManager a ServiceContext decorationHaley Connelly2020-02-211-1/+1
|
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-5/+4
|
* SERVER-41071 Replace NULL and 0 with nullptrA. Jesse Jiryu Davis2019-06-141-1/+1
|
* SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin2019-06-101-2/+3
|
* SERVER-41124 Remove default collection from keystore APIShreyas Kalyan2019-05-291-2/+4
|
* SERVER-39896 Write shell JS API for explicitly encrypting and decrypting dataShreyas Kalyan2019-05-031-0/+50
|
* SERVER-39894 Add support for AWS credentials in the shellShreyas Kalyan2019-04-151-0/+17
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-29286 import and use mozjs-60Gabriel Russell2019-01-301-1/+1
|
* Revert "SERVER-29286 import and use mozjs-60"Gabriel Russell2019-01-291-1/+1
| | | | This reverts commit a3d232b697dfc7c8833fc1855abbc190fe0d5970.
* SERVER-29286 import and use mozjs-60Gabriel Russell2019-01-291-1/+1
|
* SERVER-38510 Set moreToCome flag with OP_MSG writes from shellA. Jesse Jiryu Davis2019-01-071-3/+45
|
* SERVER-37527 Fix lifecycle management and clarify isDone->isSuccessSara Golemon2018-11-291-1/+1
|
* SERVER-35212: Refactor shell code to enable default authentication database ↵Tyler Kaye2018-11-141-3/+2
| | | | as admin
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-21/+23
|
* SERVER-36094 Make DBClientBase::query() take an NamespaceStringOrUUIDMatthew Russotto2018-08-141-3/+8
|
* 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-291-56/+20
|
* SERVER-35115 Separate dbclientinterface.h into several parts, one per class.Henrik Edin2018-06-291-1/+1
|
* 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-34665 Update definition of retryable error in the mongo shell.Max Hirschhorn2018-04-271-2/+47
| | | | | | 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
|