| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
MMAPv1 will not support this operation.
|
| |
|
| |
|
| |
|
|
|
|
| |
rather than using commands
|
|
|
|
|
| |
The new file is mongo/db/db_raii.h. Also, Client::Context is now OldClientContext and
Client::WriteContext is OldClientWriteContext.
|
| |
|
| |
|
|
|
|
| |
Coordinator classes
|
|
|
|
|
|
|
| |
Followup to SERVER-16072
Add dbtest for commands that accept Symbol BSON type as collection name
- Includes SConscript tweak to link missing "touch" command into dbtest
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
start up.
Previously, ReplicationCoordinator::getReplicationMode() returned modeNone if
the settings object indicated the node was part of a replica set, but no valid
replica set configuration had yet been discovered. With this change, the
settings object is the sole determinant of the return value of
getReplicationMode(). Callers that wish to know if a replica set member is
initialized should instead check ReplicationCoordinator::getMemberState(). If
the value is RS_STARTUP, then the node is not initialized with a replica set
config.
This has the side-effect of removing the mutex in ReplCoordinatorImpl from the
code path for this method.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Temporarily disable collection locking for MMAPv1.
|
|
|
|
|
|
|
|
|
| |
This reverts commit da599844c97ef6d290c03e073a9bafe41c1a914e.
Conflicts:
src/mongo/db/repl/repl_coordinator_external_state_impl.cpp
src/mongo/dbtests/counttests.cpp
src/mongo/dbtests/querytests.cpp
|
|
|
|
|
|
|
|
| |
This reverts commit 8e83e72512fcb8eb8f06987927766c0b77cea23e.
This reinstates commit ae333bc94a7d89d3220dcae9579fcaf68aa2e290
and commit 962f959a09b63aa0482d7e0c9bad89363d1e1194, and fixes
three cases where the wrong database name was locked.
|
|
|
|
|
| |
This reverts commit ae333bc94a7d89d3220dcae9579fcaf68aa2e290.
This reverts commit 962f959a09b63aa0482d7e0c9bad89363d1e1194.
|
|
|
|
|
|
| |
Make the lock mode explicit as preparation to move some to intent locks,
and use proper database name instead of full namespace string to lock
databases.
|
|
|
|
|
| |
Each document is its own WUOW and we maintain consistency with every document.
This was the last caller of isCommitNeeded() so that method has been removed.
|
|
|
|
| |
This will make it possible to implement two-phase locking.
|
|
|
|
| |
Also performs some cleanup of the includes around locking.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
de-inlining functions that use logging where applicable.
de-inlined BSONElement::_asCode()
de-inlined BSONObjBuilder::appendDate()
de-inlined DBClientCursor::nextSafe()
de-inlined IndexDescriptor::_checkOk()
de-inlined LastErrorHolder::getSafe()
de-inlined UpdateResult constructor
de-inlined QueryPlannerCommon::reverseScans()
de-inlined repl::ScopedConn::connect()
de-inlined repl::_MultiCommand::run()
de-inlined OplogReader::tailCheck()
de-inlined repl::StateBox::change()
de-inlined repl::SyncSourceFeedback::_resetConnection()
de-inlined DiskLoc56Bit::operator=()
de-inlined DurableInterface::~DurableInterface()
de-inlined ListeningSockets::closeAll()
de-inlined RelativePath::fromFullPath() and getPartition()
de-inlined V8Scope::checkV8ErrorState and removed debug log message from ObjTracker destructor
(v8-3.25) de-inlined V8Scope::checkV8ErrorState and removed debug log message from ObjTracker destructor
removed log message from List1::orphan() - this should have no user-facing impact because List1::orphan() is used in tests only
removed log message from RWLockRecursiveNongreedy::Lock()
removed log message from RSBase destructor
removed log.h dependency from DESTRUCTOR_GUARD macro
removed mongo/util/log.h dependency from qlog.h
removed mongo/util/log.h dependency from stacktrace.h
removed mongo/util/log.h dependency from s2 logging header
removed mongo/util/log.h dependency from chunk_diff-inl.cpp
removed mongo/util/log.h from pch.h
removed unused mongo/util/log.h include from inlined file sorter.cpp
convert HashTable<K,V> to non-template NamespaceHashTable. De-inlined NamespaceHashTable::_find() and constructor
convert isself getMyAddrs()and getallIPs() debug log to use LOG() macro
assign default log component MONGO_LOG_DEFAULT_COMPONENT
removed unused macros LOGATMOST and LOGSOME
removed unused FLOG() macro from goodies.h
|
| |
|
| |
|
|
|
|
|
|
|
| |
Time tracking and database access in Client::Context require access to the
OperationContext. Adding it as argument.
This is in preparation for removing LockState from Client.
|
|
|
|
| |
This reverts commit e1f5a39b1b625d04752be13f39c774e579b64cd8.
|
|
|
|
|
|
|
| |
Time tracking and database access in Client::Context require access to the
OperationContext. Adding it as argument.
This is in preparation for removing LockState from Client.
|
|
|
|
| |
This reverts commit 52edab726185cbba1401cb46de221fb3d1cb0408.
|
|
|
|
|
|
|
| |
Time tracking and database access in Client::Context require access to the
OperationContext. Adding it as argument.
This is in preparation for removing LockState from Client.
|
| |
|
| |
|
|
|
|
|
| |
This is part of the changes to move LockState be part of OperationContext
and not retrieved from TLS.
|
|
|
|
| |
This reverts commit 0672061deb58aac931912bed68d014247c581968.
|
|
|
|
|
| |
This is part of the changes to move LockState be part of OperationContext
and not retrieved from TLS.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This is the result of the following seds and a few manual fixups, including
removing the old run() and fixing the comments.
git grep -l '\<run(const' | xargs sed -si -e 's/\brun(const/newRun(TransactionExperiment* txn, const/'
git grep -l '\<run( const' | xargs sed -si -e 's/\brun( const/newRun(TransactionExperiment* txn, const/'
git grep -l '\<newRun(' | xargs sed -si -e 's/\bnewRun(/run(/'
|
| |
|
|
|
|
|
| |
This is necessary to ensure that the lopOp is on the same Transaction as the
operation.
|
| |
|
|
|
|
|
|
| |
This change removes all usages of LockStatus and pushes the lock
acquisitions to be inside the respective commands. This is a
refactoring on the way to per-document locking.
|
| |
|