summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_targeter.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-41134 Add RSM::findHostsWithMaxWaitJason Carey2019-05-281-0/+3
| | | | | | | | 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
* SERVER-36359 Introduce SemiFuture<T> and ExecutorFuture<T>Mathias Stearn2019-04-111-2/+2
|
* SERVER-40357 expand all calls to MONGO_DISALLOW_COPYINGBilly Donahue2019-03-281-2/+2
| | | | | | | | | | | 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
* 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-38295 ReplSetMonitor::getHostOrRefresh should not do anything if ↵Mathias Stearn2018-12-271-13/+0
| | | | maxWait <= 0
* SERVER-35688 Make RSM return SharedSemiFuturesMathias Stearn2018-12-201-2/+2
| | | | | This prevents consumers from chaining work that would run inside of the RSM thread and possibly cause a deadlock.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-35689 Futurize RSM API with temporary detached-thread implementationMathias Stearn2018-09-201-3/+4
|
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-1/+1
| | | | | | 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-26683 Log reason for marking repl hosts as failed in the RSMKaloian Manassiev2016-10-241-8/+8
|
* Revert "SERVER-26683 Log reason for marking repl hosts as failed in the RSM"Kaloian Manassiev2016-10-241-8/+8
| | | | This reverts commit 80d6ca07522fce27f9559007791ebe4a1afe0866.
* SERVER-26683 Log reason for marking repl hosts as failed in the RSMKaloian Manassiev2016-10-241-8/+8
|
* SERVER-24600 Increase interruptibility of RemoteCommandTargeter::findHost.Andy Schwerin2016-09-071-17/+29
| | | | | By making more calls of RemoteCommandTargeter::findHost interruptible, this change speeds up the shutdown of mongos when no config servers are discoverable.
* SERVER-21272 Make RemoteCommandTargeter use timeout for findHostKaloian Manassiev2015-11-111-2/+18
| | | | | | 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).
* SERVER-21272 Make replica set monitor retry finding hostsKaloian Manassiev2015-11-111-5/+3
| | | | | | 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.
* SERVER-20456 inform ReplicaSetMonitor of unreachable host and re-target in ↵David Storch2015-09-211-0/+7
| | | | new mongos read path
* SERVER-19403 Notify targeter of NotMaster errorsSpencer T Brody2015-07-281-0/+7
|
* Revert "Revert "SERVER-19111 Move common addShard functionality to ↵Kaloian Manassiev2015-07-031-0/+9
| | | | | | CatalogManager"" This reverts commit c87142d4649e81c2de694b36a78115bfde5bf548.
* Revert "SERVER-19111 Move common addShard functionality to CatalogManager"Kaloian Manassiev2015-07-011-9/+0
| | | | This reverts commit 427b07f64530291af6ae410902939c58db9c0fa5.
* SERVER-19111 Move common addShard functionality to CatalogManagerKaloian Manassiev2015-06-301-0/+9
| | | | | | | | | | 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.
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-25/+27
|
* SERVER-19016 Implement runUserManagement{Read,Write}Command in ↵Spencer T Brody2015-06-181-1/+3
| | | | CatalogManagerReplicaSet
* SERVER-18438/SERVER-18435 Add RemoteCommandTargeter and runner to gridKaloian Manassiev2015-06-091-3/+3
| | | | | | | | | | | * 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.
* SERVER-18526 Change the mocking method to accept function objectsRandolph Tan2015-05-191-1/+1
|
* SERVER-18418 Remote command targeterKaloian Manassiev2015-05-121-0/+60
This change introduces a remote command targeter interface to be used as a stub to start implementing the targeting logic.