Commit Graph

192 Commits

Author SHA1 Message Date
Aaron
4a3631017b new master forces new slave to resync if either master or slave oplog has filled since while both are master 2009-04-22 10:52:32 -04:00
Aaron
eb5fa5c7d8 add index id in userCreateNS, unless this is not requested in create spec 2009-04-21 15:42:22 -04:00
Aaron
bf656b52ff add sigkill case, handle writes to master during oplog reconciliation 2009-04-17 13:21:50 -04:00
Aaron
3a834f87d4 better 'initialPull' semantics 2009-04-17 10:38:11 -04:00
Aaron
f660a76369 pairing checkpoint 2009-04-16 11:36:06 -04:00
Aaron
0f9c165ad0 don't require new connection for oplog reconciliation, just slave writing to oplog 2009-04-10 17:55:55 -04:00
Aaron
ea5b205666 must be exactly one master when applying oplog after initial sync completed 2009-04-10 17:03:45 -04:00
Aaron
969a20b4f6 track ids across multiple namespaces, handle mods correctly 2009-04-10 15:24:11 -04:00
Aaron
f5b887069c rough first cut of new pair oplog reconciliation logic 2009-04-09 18:50:29 -04:00
Aaron
28a140ee8c basic arbitration e2e test, with minor code fix 2009-04-03 14:24:05 -04:00
Aaron
df91e7d5b1 Fix ReplSource memory leaks 2009-04-01 16:00:56 -04:00
Aaron
cec6d1af97 Persist dbs to add 2009-03-31 14:05:20 -04:00
Aaron
c54883ff61 Always list databases if syncedTo is initial 2009-03-31 12:09:55 -04:00
Aaron
a1706a3d1b Reset ReplSource on resync 2009-03-31 11:44:35 -04:00
Aaron
d74b108dd4 include \!justCreated case, for redundancy 2009-03-31 10:23:05 -04:00
Aaron
d9dff04bbd Don't log db presence explicitly 2009-03-30 17:08:06 -04:00
Aaron
529780f250 Apply first entry when 'initial' 2009-03-30 16:28:52 -04:00
Aaron
ca46791a7b Just exit if --only specified without --source 2009-03-24 11:46:55 -04:00
Aaron
a1a76f96bf Check --pairwith peer spec against local.sources on startup 2009-03-23 11:38:22 -04:00
Aaron
5a276ef621 Replace emptyObj with BSONObj() 2009-03-19 16:23:04 -04:00
Aaron
6d10afbd49 Find requested oplog entry starting from tail of log 2009-03-18 17:24:10 -04:00
Aaron
ef94f514b7 On resync, clear all nontrivial local dbs that exist on remote machine 2009-03-18 13:45:32 -04:00
Aaron
5711417230 Handle 'only' spec when reading db list 2009-03-17 18:22:17 -04:00
Aaron
0a578392a6 More robust / accurate checking of previous failed initial clone 2009-03-17 17:20:08 -04:00
Aaron
8ffaa3e2d9 Remove 'haveLogged' 2009-03-17 13:48:40 -04:00
Aaron
f1b3732e1d Remove first:true op field 2009-03-17 13:36:06 -04:00
Aaron
9f5ae81ed4 Start from end of op log on initial query (first commit) 2009-03-17 13:18:54 -04:00
Aaron
04e03fccc3 More specific information on repl exceptions 2009-03-12 11:01:52 -04:00
Aaron
eb68328620 Test exhausting oplog space 2009-03-06 11:51:44 -05:00
Aaron
20e6ea6b8e Invalidate log if run out of space 2009-03-06 11:08:30 -05:00
Aaron
9817535968 Infrastructure for validating log 2009-03-06 10:45:35 -05:00
Aaron
feb63537e1 Fix some clonecollection issues 2009-03-05 19:58:07 -05:00
Aaron
ae78648781 Better cloneCollection checkpoint 2009-03-04 15:57:35 -05:00
Aaron
5ca50873ab Fix line which would never log 2009-03-02 18:39:10 -05:00
Aaron
930f169fd7 Add idempotence test for timestamp update 2009-03-02 18:16:27 -05:00
Dwight
459d62347b replication / exception throwing bug fix
--only option added
2009-02-12 15:03:38 -05:00
Dwight
9f5fe79f2f little things: hack for windows filenames, better logging 2009-02-11 11:28:49 -05:00
Dwight
85298ec174 wasn't logging enough 2009-02-11 09:58:01 -05:00
Dwight
147948c7b3 doneAndDecouple() -> obj() 2009-02-09 13:04:32 -05:00
Dwight
7d593671fe rename classes and add a new client connect method 2009-02-06 16:56:14 -05:00
Aaron
5cb34b0b80 Allow 'count' command on a slave 2009-02-04 17:24:15 -05:00
Dwight
5dd84d0638 on exit, wait for replication to finish up 2009-02-04 13:22:02 -05:00
Eliot Horowitz
3aa74384ae grid/message -> util/message 2009-02-03 13:30:28 -05:00
Aaron
99ad2eac76 Parse port suffix before calling hostbyname() 2009-02-02 16:18:44 -05:00
Aaron
bf700c8040 Add autoresync option 2009-02-02 11:15:24 -05:00
Aaron
384514998c Make arbitration smarter -- arbiter forwards negotiate request to paired node 2009-02-02 09:53:01 -05:00
Aaron
1fe268276d Don't destroy db mutex 2009-01-29 17:26:07 -05:00
Aaron
44ad0f3b20 Add resync command 2009-01-29 11:46:45 -05:00
dwight
7aba6a0e0f _id can be any type 2009-01-25 19:53:51 -05:00
dwight
76b6aac917 make security work with repl pairs
replicate system.users collection
2009-01-24 21:25:55 -05:00