| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Still not really safe for signal handlers, but no worse than before,
and correctly logs to the log file/syslog, so an improvement.
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
|
|
|
|
|
|
|
|
|
| |
of required privileges.
This patch has two principal components. First, it changes the interface to Privilege and
AuthorizationSession to use ResourcePattern in place of std::string for identifying resources.
Second, it examines all call sites of the authorization session interface in commands and
other code to ensure that the correct resource requirements are conveyed to the authorization_session.
|
| |
|
|
|
|
| |
Also prevent accidental creation of duplicate ramlogs of the same name.
|
|
|
|
| |
moving CmdShutdown to its own file
|
| |
|
|
|
|
| |
AuthorizationSession.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
authorization system
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Add the ability to get a string for the JavaScript engine so that
scripts can know when they are running under SpiderMonkey versus V8.
The shell gets an 'interpreterVersion()' function that returns a string.
The 'buildInfo' command gets a new field named 'interpreterVersion'.
SpiderMonkey returns "SpiderMonkey 1.7"; V8 returns "V8 3.12.19".
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
vector of strings.
This patch separates the process of censoring the process argv array (affecting the output of ps on
linux) from the process of parsing the command line. It then changes CmdLine::store to take a
vector of strings, instead of a mutable char**, for later use in the init system's command line
processing role.
Unit tests for the new censoring code, which is more throrough than the old, are included, and the
"command" to get the contents of the command line is moved to dbcommands_generic, to make linking
cmdline.cpp into unit tests easier.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New parameter replIndexPrefetch.
Settable via the command line or use setParameter() command on a running server.
Only valid on a server started with --replSet parameter.
This allows a user to disable the prefetching of all index pages prior to the application
of a replicated op on a secondary.
For most use cases, prefetching all indexes for a given op will provide good performance.
For use cases that do many in-place updates to documents in a collection with many indexes
that are unaffected by such updates, using the '_id_only' setting may provide better performance
than the 'all' setting. The '_id_only' setting only prefetches index pages for the _id index,
which will always be used to find the document needed to be updated.
The 'none' setting will be used for debugging only; there should be no production use cases for
this setting.
getParameter() supports getting the current value of this parameter.
|
| |
|
|
|
|
| |
SERVER-4581
|
|
|
|
|
|
|
| |
While, perhaps, not a permanent solution, using fassert() when log rotation fails is a better
choice than dbexit(), because fassert() is a fast shutdown path.
See SERVER-5520.
|
|
|
|
|
|
| |
It was needed in exactly one codepath. This patch changes behavior slightly,
trying the lock acquisition sooner in the shutdown process on the one codepath
that used it.
|
| |
|
| |
|
| |
|
|
|