| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Add support for a new method on the ReplicaSetMonitor, which finds all
acceptable hosts for a read preference (rather than just a single host).
This should use existing selection logic to return the host that would
be returned by findHostWithMaxWait in the [0]th element
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
produced by:
hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )"
for f in "$hits"; do
sed -i.orig '
s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/;
' $f
done
|
|
|
|
|
|
| |
Remove leading comments that are just stating the filename.
Move any file-level comments below the copyright banner.
Remove leading blank lines.
|
|
|
|
| |
maxWait <= 0
|
|
|
|
|
| |
This prevents consumers from chaining work that would run inside of the RSM
thread and possibly cause a deadlock.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This reverts commit 80d6ca07522fce27f9559007791ebe4a1afe0866.
|
| |
|
|
|
|
|
| |
By making more calls of RemoteCommandTargeter::findHost interruptible, this
change speeds up the shutdown of mongos when no config servers are discoverable.
|
|
|
|
|
|
| |
This change removes all back-off logic from ShardRegistry and
CatalogManagerReplicaSet and defers it all to the wait time capability of
the ReplicaSetMonitor (through RemoteCommandTargeter).
|
|
|
|
|
|
| |
This change makes the replica set monitor retry more than once to find
hosts suitable for a given read preference and fail quickly if none of the
hosts for a given replica set can be reached.
|
|
|
|
| |
new mongos read path
|
| |
|
|
|
|
|
|
| |
CatalogManager""
This reverts commit c87142d4649e81c2de694b36a78115bfde5bf548.
|
|
|
|
| |
This reverts commit 427b07f64530291af6ae410902939c58db9c0fa5.
|
|
|
|
|
|
|
|
|
|
| |
This change is prerequisite for implementing the addShard method in the
replica set catalog manager.
It moves common addShard functionality as static methods on the
CatalogManager and adds the ability to create detached shard objects to be
used for making calls against shards and ability to retrieve the shard's
dynamic connection string.
|
| |
|
|
|
|
| |
CatalogManagerReplicaSet
|
|
|
|
|
|
|
|
|
|
|
| |
* Implement a RemoteCommandTargeterFactory to dispense targeters based on
the connection string.
* Implement replica set monitor-based remote command targeter factory.
* Hook these with the global grid object.
* Switch the Shard::runCommand call to build on those.
|
| |
|
|
This change introduces a remote command targeter interface to be used as a
stub to start implementing the targeting logic.
|