summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-49102 Custom filter for logging/profilingDavid Percy2020-09-041-31/+1
|
* SERVER-50317 Const correct uses of CollectionHenrik Edin2020-09-021-2/+2
| | | | | | Most of the code should only need a const Collection now. AutoGetCollection returns a const Collection by default. There is a placeholder getWritableCollection() interface that will handle the necessary steps we need for lock free reads in the future. Added some operators to AutoGetCollection so it behaves more like a smart pointer.
* SERVER-48148 Cleanup of execution logs in db/Henrik Edin2020-05-151-2/+3
|
* SERVER-47931 Retry WriteConflictExceptions when creating a *.system.profile ↵Dianna Hohensee2020-05-141-21/+28
| | | | collection
* SERVER-47735 change mongo source over to logv2Billy Donahue2020-04-261-1/+1
| | | | | | - Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
* SERVER-47360 Take collection MODE_IX lock instead of database MODE_X lock ↵Gregory Noma2020-04-091-82/+39
| | | | when creating system.profile
* SERVER-45567 removing util/log.h where I canGabriel Russell2020-02-211-1/+0
| | | | | | | o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
* SERVER-45869 automatically converted structured loggingGabriel Russell2020-02-131-10/+21
|
* SERVER-43859: Take MODE_IX locks for collection creation.Daniel Gottlieb2019-11-261-3/+3
| | | | | | | | | | | | | | | | | Two concurrent storage transactions can now create collections with the same collection name. These transactions will conflict at commit time; the first committer will win and register their collection into the global catalog. The losing transactions will bubble a WriteConflictException. Top-level callers that should fail if the collection already existed must now check and fail with a NamespaceExists error code. Previously, those callers could rely on lower level code returning the NamespaceExists error. Callers that were implicitly creating a collection may retry the operation, using the now-registered collection. These transaction-local collections (UncommittedCollections) are returned when doing any CollectionCatalog::lookup* call.
* SERVER-41496 Remove Database::getCollection() and replace with ↵Evgeni Dobranov2019-09-301-2/+5
| | | | CollectionCatalog::get().lookupCollectionByNamespace()
* SERVER-29794 Adding a comment to all commandsArun Banala2019-09-241-1/+1
|
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-1/+1
|
* SERVER-42164 Allowed ErrorCode::is{Category} to take a StatusBen Caimano2019-07-231-1/+1
|
* SERVER-41474 Exclude writes to system.profile from Flow ControlMaria van Keulen2019-07-091-0/+13
|
* SERVER-40938: disallow afterClusterTime and ignore prepare conflicts for ↵Lingzhi Deng2019-05-231-33/+6
| | | | dbhash and map-reduce
* SERVER-40724 Change namespace arguments to use NamespaceStringGeert Bosch2019-04-261-1/+1
|
* SERVER-40519 Profiler should temporarily enforce prepare conflicts while ↵Louis Williams2019-04-231-0/+37
| | | | performing writes
* SERVER-40688 Make CollectionLock take NamespaceStringGeert Bosch2019-04-171-3/+2
|
* SERVER-40604 Make CollectionLock interruptibleGeert Bosch2019-04-151-1/+1
|
* SERVER-39848: Add flow control diagnostics.Daniel Gottlieb2019-04-091-1/+2
|
* 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-38481 No strong locks in profiling while uninterruptibleJustin Seyster2019-01-081-3/+17
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-26854 LockStats for sub-operations should not include wait time for ↵Xiangyu Yao2018-09-071-1/+1
| | | | previous operations
* SERVER-34726 Lock acquisitions for profiling in transaction have 0 second ↵Tess Avitabile2018-05-181-2/+6
| | | | timeout
* SERVER-27534 All writing operations must fail if the term changes.Justin Seyster2018-04-181-0/+5
| | | | | This reapplies bc19d43f, which was reverted by ae50776b. It also adds more test fixes.
* SERVER-28912 Thread statement id from batched insert command oplog entryRandolph Tan2017-07-121-1/+2
|
* SERVER-27244 Status usage compile-time facilities.ADAM David Alan Martin2017-06-181-2/+2
| | | | | | | | | | | | | | | | | There are numerous places in the codebase where `mongo::Status` or `mongo::StatusWith< T >` objects are returned and never checked. Many of these are innocuous, but many of them are potentially severe bugs. This change introduces facilities to permit compile-time warning of unchecked `Status` and `StatusWith` usage on clang compilers. It introduces an `ignore` function which is useful to state that a specific "ignored status" case was intentional. It not presently an error, in clang builds, to forget to check a `Status` -- this will come in a later commit. This also introduces a `transitional_ignore` function, which allows for easy continual auditing of the codebase for current "whitelisted" unchecked-status instances. All present "ignored status" cases have been marked `transitional_ignore`.
* SERVER-28543 Add OperationContext as an argument to getCollectionMaria van Keulen2017-04-061-2/+2
|
* SERVER-22541 Refactor RAII locking helpers.Charlie Swanson2017-03-151-2/+0
| | | | | | | | | Removes the class 'ScopedTransaction' and moves the responsibility of abandoning the snapshot onto the GlobalLock class. Also renames the AutoGetCollectionForRead class to AutoGetCollectionForReadCommand, and adds a new AutoGetCollectionForRead class. Unlike AutoGetCollectionForReadCommand, this new class will not update the namespace on the CurrentOp object, nor will it add an entry to Top.
* SERVER-26965 Use RAII type for turning off replicated writesMatthew Russotto2017-03-131-3/+1
|
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-26/+26
| | | | | | 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-24991 log redaction for commands, concurrency, exec, indexThomas Schubert2016-09-021-3/+2
|
* SERVER-24614 Add Client Metadata's appname to system.profileMark Benvenuto2016-08-041-0/+11
|
* SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD opsJames Wahlin2016-04-211-1/+2
|
* Revert "SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD ops"Benety Goh2016-04-211-2/+1
| | | | This reverts commit 6bbaee174447ee1c9177c72bdd07f050ab07e901.
* SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD opsJames Wahlin2016-04-211-1/+2
|
* SERVER-21276: Fix various issues with topMartin Bligh2015-11-111-3/+4
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-112/+103
|
* SERVER-17308 Replace boost::scoped_ptr<T> with std::unique_ptr<T>Andrew Morrow2015-06-101-2/+2
|
* Reapply "SERVER-14995 Move operation id, lockState and client fields to ↵Andy Schwerin2015-06-021-0/+1
| | | | | | OperationContext." This reverts commit e181ea38af737ef7aaf5f8228f870d8c7149b2bb.
* Revert "SERVER-14995 Move operation id, lockState and client fields to ↵Spencer T Brody2015-05-291-1/+0
| | | | | | OperationContext." This reverts commit 4ea38c308da292f43e29d32b1b53b7324db0bafe.
* SERVER-14995 Move operation id, lockState and client fields to OperationContext.Andy Schwerin2015-05-291-0/+1
| | | | | | | | | | | | | They have been moved from OperationContextImpl. Furthermore, the CurOp stack is now attached to OperationContext, instead of Client. With this change, an operation's lifetime is governed by the lifetime of an OperationContext object. The "_active" field of CurOp is therefore no longer meaingful. This required fixing the lifetime of OperationContext in a few places. A future change will adjust operation lifetime timing to time the lifetime of the OperationContext object, as well.
* Revert "Revert "SERVER-18515 Replace OperationContext::getCurOp with ↵Ernie Hershey2015-05-181-5/+5
| | | | | | CurOp::get(OperationContext*)"" This reverts commit 7147e127644cba2bfa292945557b43664cc31f47.
* Revert "SERVER-18515 Replace OperationContext::getCurOp with ↵Ernie Hershey2015-05-181-5/+5
| | | | | | CurOp::get(OperationContext*)" This reverts commit d5bf63455aa614d98ac840f09ce5ca6b813b9507.
* SERVER-18515 Replace OperationContext::getCurOp with ↵Andy Schwerin2015-05-181-5/+5
| | | | CurOp::get(OperationContext*)
* SERVER-17817 Make AuthorizationSession a decoration of ClientBasic.Andy Schwerin2015-04-161-1/+1
|
* SERVER-17573 move OpObserver calls into the datalayer as much as possible ↵matt dannenberg2015-04-091-0/+4
| | | | and eliminate repl bools
* SERVER-17758 Move AutoGet* and Client::*Context to their own file.Andy Schwerin2015-03-271-1/+2
| | | | | The new file is mongo/db/db_raii.h. Also, Client::Context is now OldClientContext and Client::WriteContext is OldClientWriteContext.
* SERVER-16799 Report locking stats in the slow query logKaloian Manassiev2015-02-111-1/+5
|