summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/engine.cpp
AgeCommit message (Collapse)Author
2024-09-05SERVER-94437 Introduce test runner prelude for interactive mode (#26746)Matt Broadstone
GitOrigin-RevId: 609f32db31f30deae66819c8ecba577dfc191a39
2024-03-19SERVER-87974 Enable modernize-use-override and apply fixes (#20075)Ivan Fefer
GitOrigin-RevId: c69dc68af83faf399b2e82454ce27d95379c094c
2024-03-01SERVER-86818 Rename our custom Map implementation to BSONAwareMapMatt Broadstone
GitOrigin-RevId: bcf8bc34491d05927cd3574c3ee0ee8f7657ca2b
2023-12-26SERVER-83330 Access RecoveryUnit and Locker through transaction_resources.hSilvia Surroca
GitOrigin-RevId: e627a7d75870a18ed4dea1f6b7d874597d45d5ed
2023-08-30SERVER-80109 Make WhereMatchExpression take in DatabaseName objectMathis Bessa
2023-08-25SERVER-78486 Replace parseNamespaceFrom* calls with deserializeHugh Tong
2023-08-02SERVER-65920 Remove NamespaceString ctors with default parameter for tenantIdMathis Bessa
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2023-02-22SERVER-73873 Remove opCtx captures from onCommit/onRollback handlersLouis Williams
2022-05-06SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue
2022-03-26SERVER-61234 Expand support for $function returning scalar BSON valuesJustin Seyster
2022-01-13SERVER-27209 Eliminate dangerous BSONElement string extraction methodsMatt Kneiser
- Fix: Change return type of BSONObj::getStringField to include size (StringData vs. char*). A char* only contains the data with an ending NULL termination. Whereas a StringData contains data + size so caller knows how to interpret data if there are embedded NULLs. - Cleanup: Remove old tag - CachedSizeTag - that disambiguated BSONElement ctors. A dangling reference to 'maxLen' in a comment led me to this historical issue. $ git log -S'maxLen' -- src/mongo/bson/bsonelement.h commit 0d38ef5 Author: Mathias Stearn mathias@10gen.com Date: Tue Dec 19 14:23:08 2017 -0500 SERVER-32302 Compute BSONElement sizes eagerly - Test: Add tests for NULL bytes being returned by getStringField - $ ninja -j400 +bson_obj_test - Cleanup: Move BSONElement::valuestr() from public to private - Cleanup: Remove BSONElement::valuestrsafe() - Cleanup: Remove all external callers of valuestr/valuestrsafe and cleanup their callsites with better alternatives. - Cleanup: Make multi-line BSONElement & BSONObj public API comments conform to style guidelines - Nit: Fix spelling in a comment
2021-12-21SERVER-61385 Migrate callers of 'DBClientBase::query()' legacy API to the ↵David Storch
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.
2021-11-19SERVER-47808 Add new registerChange overload to simplify Change codeGabriel Marks
2021-08-23SERVER-58670 Tighten up what kind of BSON the 'Query' type can be wrapped aroundIrina Yatsenko
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.
2021-02-05SERVER-53671 Make ~PooledScope() resilient to 'InterruptedAtShutdown' exceptionsMihai Andrei
2020-11-14SERVER-51827 Log and rethrow if ~PooledScope throwsDavid Percy
2020-10-23SERVER-50511 Change local variables and functions in dbclient filesAmirsaman Memaripour
2020-10-13SERVER-50917 util/ctype.h to replace <cctype> & <ctype.h> funcsBilly Donahue
2020-09-10SERVER-50622 Add logging for 'mr_killop_test_fp' failpointJustin Seyster
2020-05-18SERVER-46189 Fix shell kill current ops with TLS replica set and down nodesMark Benvenuto
2020-05-18SERVER-46932 supress more logging in the shellGabriel Russell
2020-04-26SERVER-47735 change mongo source over to logv2Billy Donahue
- Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
2020-04-17SERVER-47445 Don't update Scope::_loadedVersion before loadStored succeedsDavid Percy
2020-02-26SERVER-45460 Mark CodeWithScope as deprecated in bsontypes.hJames Wahlin
2020-02-21SERVER-45567 removing util/log.h where I canGabriel Russell
o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
2020-02-13SERVER-45869 automatically converted structured loggingGabriel Russell
2019-11-27SERVER-43867 Move check_log.js inside src/mongo/shell/Vesselina Ratcheva
2019-10-29SERVER-42748 Support using stored procedures (system.js) in map/reduceJacob Evans
2019-10-21Revert "SERVER-42748 Support using stored procedures (system.js) in map/reduce"Jacob Evans
This reverts commit 6eac52a928f7a949713f7e7c20468ea0ecba8946.
2019-10-21SERVER-42748 Support using stored procedures (system.js) in map/reduceJacob Evans
2019-10-09SERVER-43818 Remove src/mongo/shell/mr.jsCharlie Swanson
2019-10-03SERVER-43317 merge failpoint headers. Rewrite docs.Billy Donahue
iterate docs
2019-09-17SERVER-42165 Replace uses of stdx::mutex with mongo::MutexBen Caimano
2019-09-10SERVER-43119 FailPoint cleanupBilly Donahue
- Don't use MONGO_INITIALIZER to declare each fail point. We only need one init task in total: freeze and iterate the registry. - remove MONGO_FAIL_POINT_DECLARE macro (extern) - remove MONGO_FAIL_POINT_SHOULD_FAIL macro (FailPoint::shouldFail) - remove MONGO_FAIL_POINT_BLOCK_IF (FailPoint::executeIf) - remove MONGO_FAIL_POINT_BLOCK (FailPoint::execute) - clean up FailPointRegistry and fail_point_service implementation.
2019-09-09SERVER-41896 Take a unique_ptr as an argument to RecoveryUnit::registerChange()Evgeni Dobranov
2019-07-27SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.1
2019-06-14SERVER-41071 Replace NULL and 0 with nullptrA. Jesse Jiryu Davis
2019-03-06SERVER-39959 Make js scope reuse time basedJason Carey
Current js scope reuse is based on the number of times used. I.e. a scope will be re-used 10 times, then thrown away. This is suboptimal for workloads that don't perform large scans. Switching to a time based reuse strategy gives the same benefits as a low reuse count (limiting memory consumption and avoiding accumulating too much debris in the scopes), while improving performance for those more targeted workloads
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2019-01-07SERVER-36644 remove AtomicWord typedefsBilly Donahue
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-08-14SERVER-36094 Make DBClientBase::query() take an NamespaceStringOrUUIDMatthew Russotto
2018-06-29SERVER-35847 Remove eval command and remove/update related tests/helpersSara Golemon
2018-06-29SERVER-35115 Separate dbclientinterface.h into several parts, one per class.Henrik Edin
2018-05-30SERVER-35275 rename fail point FP macros, improve docsBilly Donahue
2018-05-23SERVER-35061: Javascript sleep should error on premature wakeSpencer Jackson
2018-05-03SERVER-34580 Plumb commit time to commit handlers when availableJudah Schvimer
2018-02-14SERVER-33275 Remove `platform/unordered_`* headersADAM David Alan Martin
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.
2017-08-30SERVER-30875 add requireOwnedObjects() to scopeJason Carey
Add a flag to JS scopes that requires that bson objects bound to the scope be owned. This should allow for more easy auditing of scopes that don't explicitly manage lifetime with advanceGeneration.