Commit Graph

47 Commits

Author SHA1 Message Date
Greg Studer
7db56fc74c add return 2011-06-01 13:18:11 -07:00
gregs
b2236461fa check for not master or secondary error on slave queries, re-route SERVER-2253 2011-06-01 15:51:10 -04:00
gregs
be7074a9dd check if master is null CS-596 2011-05-27 19:42:44 -04:00
Mathias Stearn
b690e237fd Add InsertOption_KeepGoing to keep going after error on bulk insert. SERVER-509 2011-05-23 18:46:27 -04:00
gregs
cd0dbafc47 Fix for potential unsafe access of address 2011-05-19 15:41:01 -04:00
gregs
1f4c905cff fix for duplicate host names 2011-05-19 15:40:34 -04:00
Eliot Horowitz
225227e8e2 fix deadlock 2011-05-12 16:57:28 -04:00
Eliot Horowitz
5d22fbae02 fix race condition when adding hosts to the list of relica set nodes 2011-05-12 15:44:33 -04:00
gregs
0017f70d11 don't shadow return value for maybePrimary 2011-05-12 15:25:30 -04:00
gregs
2b922d9097 deterministic slaveok failover 2011-04-27 17:54:49 -04:00
Eliot Horowitz
2a4fc317fc a little more aggressive trying slaves 2011-04-27 00:00:32 -04:00
gregs
627048913d log output fix and slightly more verbose slave failover 2011-04-26 16:33:31 -04:00
Eliot Horowitz
f939069509 DBClientBase::callLazy - does the send part, and doesn't wait for response
you have to call recv later
2011-04-21 14:57:44 -04:00
Eliot Horowitz
1707fa2a7e fix callback for not master errors on replica set connections and make background thread more reliable SERVER-2868 2011-03-30 13:52:51 -04:00
Eliot Horowitz
68cbfd1e48 fix rs client error on failover SERVER-2619 2011-03-03 12:20:49 -05:00
Eliot Horowitz
763c49f692 fix startup race condition 2011-02-13 23:29:11 -05:00
Eliot Horowitz
7e5a60ba66 protect ReplicaSet watcher with a lock 2011-02-13 19:13:21 -05:00
Eliot Horowitz
7a4399841f more background job debugging 2011-02-13 16:04:06 -05:00
Eliot Horowitz
f31d82cad9 some better debugging and an assert 2011-02-13 10:07:13 -05:00
Eliot Horowitz
b1a9d70ed7 safety check for SERVER-2539 2011-02-12 14:54:14 -05:00
Eliot Horowitz
f4f7ceccf8 some public accessors 2011-02-12 14:48:20 -05:00
Eliot Horowitz
37b11e4dde fix replica set cursor cleaning through mongos SERVER-2505
fix cursor cleaning in mongos generally by not doing lazy cleaning
2011-02-09 23:03:03 -05:00
Eliot Horowitz
1ef1e7f2b8 less chatty ReplicaSetMonitor for c++ client SERVER-2490 2011-02-07 16:42:35 -05:00
Eliot Horowitz
c3125e1877 DBClientReplicaSet::killCursor should never be called SERVER-2479 2011-02-05 17:56:14 -05:00
Eliot Horowitz
471fd7da06 added option paral to call to specify server address where was sent if different 2011-02-05 17:52:36 -05:00
Eliot Horowitz
1227dfe359 fix concurrency issues with DBClientReplicaSet SERVER-2466 2011-02-02 10:47:02 -05:00
Kristina
8867e60e88 more aggressive about checking for slave errors SERVER-2439 2011-01-31 11:34:47 -05:00
Eliot Horowitz
9c1381ece0 ReplicaSetMonitorWatcher needs to run all the time SERVER-2399 2011-01-24 10:03:23 -05:00
Kristina
f0eb24f224 rs throws out master on connection exception SERVER-2377 2011-01-21 13:57:35 -05:00
Kristina
a756cf2375 make c++ client check that rs master is ok before returning it SERVER-2377 2011-01-20 19:35:12 -05:00
Kristina
a380c189fc make checkMaster more aggressive about finding new master SERVER-2261 2011-01-14 15:45:25 -05:00
Kristina
209a0e24d1 short rs conn timeout and better master check SERVER-2261 2011-01-13 16:52:38 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Eliot Horowitz
789467bd62 a litle rs client cleaning 2010-12-29 00:51:25 -05:00
Kristina
a4519f6559 make mongos not route reads to recovering slaves 2010-12-28 19:22:58 -05:00
Eliot Horowitz
bdc22dc854 some replica set client cleaning 2010-12-20 14:17:44 -05:00
Eliot Horowitz
2d7f0ad378 put line in right bracket 2010-12-20 03:53:15 -05:00
Eliot Horowitz
2f7ab64d70 routing or slave_ok reads to slaves for non-sharded collections SERVER-1634 2010-12-20 02:21:41 -05:00
Eliot Horowitz
04f1acae78 client hook to be notified of replica set changes 2010-12-20 01:28:10 -05:00
dwight
bba46ee7eb merge 2010-12-19 11:47:39 -05:00
Eliot Horowitz
5276c00022 fix ReplicaSetMonitor shared_ptr 2010-12-19 01:25:32 -05:00
Eliot Horowitz
c4ea46b1e7 route queries to secondaris if SLAVE_OK is set SEVER-1634 2010-12-19 00:11:23 -05:00
Eliot Horowitz
e6dc75b125 linux compile 2010-12-19 00:00:48 -05:00
Eliot Horowitz
46cce4595c DBClientReplicaSet::slaveConn hooked up again - final prep for SEVER-1634 2010-12-18 23:54:29 -05:00
Eliot Horowitz
fba685096f remove isMember since it was ill-formed and only used for an assert 2010-12-18 21:47:22 -05:00
Eliot Horowitz
208b86c09e DBClientReplica set refactoring just about done 2010-12-18 21:47:22 -05:00
Eliot Horowitz
4a80555f22 moving replica set client code into own files 2010-12-17 14:08:24 -05:00