0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00
Commit Graph

327 Commits

Author SHA1 Message Date
unknown
0e69584eeb compile windows db.sln 2009-08-28 15:18:15 -04:00
Dwight
2226f3292b very minor text / comments 2009-08-27 15:26:29 -04:00
Dwight
879e7b153e more CmdLine object 2009-08-25 14:35:22 -04:00
Aaron Staple
9fd0168eff SERVER-100 checkpoint field range organization improvements 2009-08-11 16:43:30 -04:00
Eliot Horowitz
2b0dbe323d don't optimize field set for sharding internals 2009-08-11 04:58:54 -04:00
Eliot Horowitz
f0e44b2907 use new append(Min|Max)Key 2009-08-11 04:55:35 -04:00
Eliot Horowitz
abb40a551d got rid of exit() calls 2009-08-07 15:37:50 -04:00
Eliot Horowitz
488086994c inShutdown() method so spider monkey can shutdown cleanly 2009-08-05 17:15:04 -04:00
Eliot Horowitz
79be4b64a3 clean up dbexit with an ExitCode enum SERVER-183 2009-08-05 16:00:27 -04:00
Dwight
e84e62cc53 sharding: fix what looks like a bug in largestElementForKey (which actually may not be used currently anyway) 2009-08-04 13:03:10 -04:00
Dwight
733ba1e11d first cut off NumberLong (64 bit ints) in BSON 2009-08-03 14:16:49 -04:00
Eliot Horowitz
f4f1291e08 FieldMathcer::getSpec 2009-07-01 15:33:03 -04:00
Eliot Horowitz
6b1d43b3b1 finish SERVER-101 move BSONObjIterator::_more to BSONObjIterator::more 2009-06-09 12:32:04 -04:00
Eliot Horowitz
00df88c21d moved BSONObjIterator::more to BSONObjectIteratore::moreWEOO()
added _more temporarily
SERVER-101
2009-06-09 11:43:04 -04:00
Dwight
c7c77aee1a make old vcproj include assert_util.cpp 2009-06-08 17:28:11 -04:00
Eliot Horowitz
5514c49e39 make lognoquiet and make --quit not print connect/disconnect 2009-06-05 10:35:04 -04:00
Eliot Horowitz
d7889fb311 Sharding: save() support SHARDING-17 2009-06-04 08:49:06 -04:00
Dwight
787dc49f9d fix mongos in vcproj to compile for release build - visual studio 2009-05-28 13:09:48 -04:00
Dwight
df348ee066 fix assert macro definition after a boost include (ugly at the moment) 2009-05-15 17:27:31 -04:00
Eliot Horowitz
a3de62485b sharding: object, not array 2009-05-15 13:02:49 -04:00
Eliot Horowitz
87cd9dac9f compile mongos 2009-05-14 16:57:57 -04:00
Dwight
a57430b399 some fixes for Release build with vcproj to make it build in general,
and for spidermonkey
2009-05-13 14:09:42 -04:00
Aaron
691629143c adjust dependencies MINOR 2009-05-11 15:09:30 -04:00
Eliot Horowitz
2d12856284 Sharding: get rid of ShardKey::middle 2009-05-06 12:34:22 -04:00
Dwight
b2a3fc9fb8 just comments MINOR 2009-04-27 11:20:47 -04:00
Eliot Horowitz
fd5f1ecb09 Merge branch 'master' of git@github.com:mongodb/mongo 2009-04-23 18:07:43 -04:00
Dwight
9a3a7f3c88 tiny beginnings for compound ShardKeyPattern 2009-04-23 15:40:00 -04:00
Dwight
ed0065fff2 visual studio happy 2009-04-23 14:31:40 -04:00
Eliot Horowitz
0bbf65ae8f Merge branch 'master' of git@github.com:mongodb/mongo 2009-04-22 16:46:43 -04:00
Eliot Horowitz
68b84b3f77 Sharding: implement count() correctly for sharded environment 2009-04-22 15:58:12 -04:00
Eliot Horowitz
676fb4ea3c Sharding: fix countObjects, some docs MINOR 2009-04-22 15:56:23 -04:00
Eliot Horowitz
1bb94684f5 Sharding: rename commands.cpp commands_admin.cpp 2009-04-22 13:36:29 -04:00
Eliot Horowitz
9afc7f05f8 Sharding: version 0.0.2 2009-04-21 20:52:49 -04:00
Eliot Horowitz
5113d30da5 Sharding: make ismaster return ismaster=1 2009-04-21 20:12:58 -04:00
Eliot Horowitz
c40ad9f56e Sharding: fix startFrom 2009-04-21 20:12:41 -04:00
Mike Dirolf
904088e131 add 'ok' field to ismaster and isdbgrid commands 2009-04-21 15:11:29 -04:00
Mike Dirolf
f43721ad57 trailing whitespace 2009-04-21 15:08:20 -04:00
Eliot Horowitz
77c6ea6148 Sharding: fix command path MINOR 2009-04-21 14:31:30 -04:00
Eliot Horowitz
b999749360 Sharding: remove special case for single server since it falls down on certain cases.
and a small cursor bug fix
2009-04-21 10:10:30 -04:00
Eliot Horowitz
71727701e5 Sharding: move empty shards on a split 2009-04-20 17:42:01 -04:00
Dwight
2a64bca3e2 compile windows 2009-04-20 09:16:47 -04:00
Eliot Horowitz
4a53d46653 Sharding: finish write back on bad shard 2009-04-18 21:55:34 -04:00
Eliot Horowitz
5da75cb8f4 Sharding: much of bad config writeback working 2009-04-17 17:11:32 -04:00
Eliot Horowitz
f9a42555bb Sharding: auto splitting working nicely 2009-04-16 10:19:52 -04:00
Eliot Horowitz
016013f756 cleaning split() 2009-04-15 22:36:33 -04:00
Eliot Horowitz
d7b7217349 Shard::getPhysicalSize() 2009-04-15 22:26:19 -04:00
Dwight
7eed0b9400 compile windows 2009-04-15 10:29:17 -04:00
Eliot Horowitz
4000e64db8 fixed other resync case 2009-04-13 10:47:55 -04:00
Eliot Horowitz
7d9eebe983 Sharding: fix part of old config resync 2009-04-12 22:19:41 -04:00
Eliot Horowitz
0a242467dd Sharding: nice logging, MINOR 2009-04-11 10:27:45 -04:00
Eliot Horowitz
8b0ad1c0f4 logging 2009-04-10 10:41:35 -04:00
Eliot Horowitz
52dbf5b3e1 Sharding: resync on stale shard config 2009-04-07 15:19:27 -04:00
Eliot Horowitz
d3d1c28411 Sharding: fix command logic 2009-04-07 13:22:12 -04:00
Eliot Horowitz
2708ec75ff Sharding: error on count for sharded collection until i fix it 2009-04-07 12:18:40 -04:00
Eliot Horowitz
c30e80145e Sharding: moveshard now is mulit-mongos safe 2009-04-06 16:31:09 -04:00
Eliot Horowitz
6b49e60fe5 implemented moveshard.(start|finish) in mongod 2009-04-06 15:57:17 -04:00
Eliot Horowitz
74bb4f6029 moveshard cleaning checkpoint 2009-04-03 16:46:48 -04:00
Eliot Horowitz
7b8881ffab refactor locking 2009-04-03 14:21:00 -04:00
Eliot Horowitz
5d81abc690 cleaning moveshard 2009-04-03 13:52:06 -04:00
Eliot Horowitz
ec376d5781 remove unused variable 2009-04-02 17:26:36 -04:00
Eliot Horowitz
1f2bab33e8 fix BSONObj ownership 2009-04-02 15:43:53 -04:00
Eliot Horowitz
fac9fcc1a1 smarter about how to split a shard
if one side is either MIN or MAX, takes all the data and puts in one
   otherwise splits on the median value
2009-03-30 17:13:55 -04:00
Eliot Horowitz
160d0b7201 cleaning split 2009-03-30 14:33:40 -04:00
Eliot Horowitz
745cfbff47 split locking 2009-03-30 13:28:49 -04:00
Eliot Horowitz
22cd9cc2e5 better checkShardVersion 2009-03-30 10:50:10 -04:00
Eliot Horowitz
1914c3933d note conn address is debug msg 2009-03-30 09:48:15 -04:00
Eliot Horowitz
7af502f1c6 sharding w version numbers checkpoint 2009-03-27 16:55:26 -04:00
Aaron
07dfc6bb3a Merge branch 'master' of git@github.com:mongodb/mongo 2009-03-26 18:37:49 -04:00
Eliot Horowitz
d417bc0802 reload option for getShardManager 2009-03-26 17:33:30 -04:00
Eliot Horowitz
d58828ebb0 allow "raw" clients - better messags 2009-03-26 17:32:25 -04:00
Aaron
0dc74b1fe0 Merge branch 'master' of git@github.com:mongodb/mongo 2009-03-25 18:47:25 -04:00
Dwight
bd9185a9ca Merge branch 'master' of git@github.com:mongodb/mongo 2009-03-25 17:38:14 -04:00
Eliot Horowitz
26ad67b9c7 shard versioning checkpoint 2009-03-25 17:35:38 -04:00
Dwight
b2b5506629 remind people at startup that there is a web admin interface 2009-03-25 17:30:30 -04:00
Aaron
7ba4140d5c Add $size query option 2009-03-25 14:47:04 -04:00
Eliot Horowitz
648633218d name cleaning 2009-03-23 16:42:18 -04:00
Dwight
3426f0e8c7 clean up warnings on windows 2009-03-23 13:12:47 -04:00
Aaron
3c2196420e Merge branch 'master' of git@github.com:mongodb/mongo 2009-03-19 16:23:19 -04:00
Aaron
5a276ef621 Replace emptyObj with BSONObj() 2009-03-19 16:23:04 -04:00
Dwight
3a5aef6756 fix a btree reuse key case
and clean up code a little
2009-03-19 11:17:16 -04:00
Dwight
86ce9e5d41 compile windows/visual studio 2009-03-19 10:33:35 -04:00
Aaron
4c52e5e6dd Print os information on startup 2009-03-18 14:15:52 -04:00
Eliot Horowitz
5b4285aa55 need to be authorative on first access 2009-03-18 10:51:04 -04:00
Eliot Horowitz
c13f00e195 fix error message 2009-03-17 22:42:35 -04:00
Eliot Horowitz
56d11945a3 Merge branch 'master' of git@github.com:mongodb/mongo 2009-03-17 17:25:24 -04:00
Eliot Horowitz
affd92783f making mongod sharding aware 2009-03-17 17:25:10 -04:00
Dwight
7165d7369e implemented dropIndexes for alt rec store 2009-03-17 17:02:21 -04:00
Eliot Horowitz
5cd0f0e376 get version on startup 2009-03-17 10:22:26 -04:00
Eliot Horowitz
2a1c3b1492 get rid of Model::defaultServer since its not being used and complicates some things 2009-03-12 17:12:24 -04:00
Eliot Horowitz
d02951083c sharding version management for mongod 2009-03-11 17:28:49 -04:00
Dwight
712673263b no --infer anymore 2009-03-11 13:49:54 -04:00
Eliot Horowitz
74ab32161e lastmod for shards, using timestamp stuff 2009-03-09 16:06:19 -04:00
Dwight
8431f60b10 shardkey lt gt query support 2009-03-06 13:12:00 -05:00
Dwight
a039cf7ec7 compile windows 2009-03-03 16:06:57 -05:00
Eliot Horowitz
474d2c0d24 switch mongos to use MessageServer
use boost asio if it exists on the system
2009-03-02 13:35:34 -05:00
Eliot Horowitz
c1207fddd5 use AbstractMessagingPort 2009-03-01 23:43:00 -05:00
dwight
d9ceecba23 comments 2009-02-28 09:38:41 -05:00
Aaron
5c38fa8e4c Add const 2009-02-27 17:32:27 -05:00
Eliot Horowitz
cedd4f0008 better debugging 2009-02-27 14:23:52 -05:00
Eliot Horowitz
a9b57c9d59 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-27 12:52:04 -05:00
Eliot Horowitz
dfe0cff308 lastmod 2009-02-27 12:51:49 -05:00
Dwight
46f957313c test relevantForQuery 2009-02-27 11:14:05 -05:00
Dwight
ad725ff5c2 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-27 11:05:04 -05:00
Dwight
5a261ed678 new shardkey implementation (first pass) 2009-02-27 11:04:36 -05:00
Eliot Horowitz
0dc0ff0541 make unserialze take a const BSONObj& 2009-02-27 10:37:13 -05:00
Eliot Horowitz
3722075618 get(Prev|Last)Error stubs 2009-02-26 15:55:00 -05:00
Eliot Horowitz
d8661d9b08 sharded delete 2009-02-26 15:21:47 -05:00
Eliot Horowitz
76304fd057 sharded update 2009-02-26 15:02:18 -05:00
Dwight
7225f8d37b Merge branch 'master' of git@github.com:mongodb/mongo
Conflicts:

	s/shard.cpp
	s/shardkey.cpp
	s/shardkey.h
2009-02-26 12:08:25 -05:00
Dwight
27b8b36c99 shardkey partial 2009-02-26 12:02:43 -05:00
Eliot Horowitz
a828c99d87 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-26 12:01:42 -05:00
Eliot Horowitz
47d36c761e sharding schema change, some object re-org 2009-02-26 12:01:24 -05:00
Dwight
ddbda7bd76 a couple more unit tests before rippign up 2009-02-26 11:31:08 -05:00
Eliot Horowitz
2212fb8974 use ShardKeyPattern 2009-02-26 10:14:50 -05:00
Eliot Horowitz
a49b857887 sharding schema change, put shard key in dbconfig 2009-02-26 09:47:25 -05:00
Dwight
5c74c8df81 comments and better names for shardkey
changed class name to ShardKeyPattern
2009-02-25 16:46:10 -05:00
Dwight
f95bfb7a5b shardkey comments 2009-02-25 16:19:56 -05:00
Dwight
8e1a768685 compile windows 2009-02-25 15:56:15 -05:00
Eliot Horowitz
b38abe6dc3 getMore finished, some cleaning, debugging 2009-02-25 14:23:53 -05:00
Eliot Horowitz
792a3434f5 fix delete on linux 2009-02-25 07:55:52 -05:00
Eliot Horowitz
4c98640678 getMore checkpoint 2009-02-25 01:23:58 -05:00
Eliot Horowitz
7b815a4a98 cursor code re-org 2009-02-25 00:57:31 -05:00
Eliot Horowitz
dbbbdf4787 some limit fixes, getMore checkpoint 2009-02-25 00:40:38 -05:00
Eliot Horowitz
2e7fe8df5d sort by non-shard key 2009-02-24 17:14:11 -05:00
Dwight
9a6224cf76 compile windows 2009-02-24 16:43:52 -05:00
Eliot Horowitz
630e468d61 fix isMatchandOrder 2009-02-24 16:09:22 -05:00
Eliot Horowitz
900a7f315f cleaning 2009-02-24 16:02:57 -05:00
Eliot Horowitz
1b028db7ab switch to FieldBoundSet
sorting on shardkey now works for all cases i believe
2009-02-24 14:22:08 -05:00
Eliot Horowitz
36676878dc almost done with sorting on shard keys 2009-02-24 13:28:24 -05:00
Eliot Horowitz
4fcdc84977 sharded sort by shard key 2009-02-24 11:59:43 -05:00
Dwight
c5fc4e2919 elim signed unsigned warning on windows 2009-02-24 10:21:03 -05:00
Eliot Horowitz
6198d911e5 sharded cursor framework, serial unordered access works 2009-02-23 22:55:58 -05:00
Eliot Horowitz
8a87e7123b cursor checkpoint - wrong computer 2009-02-23 21:47:25 -05:00
Dwight
7012955860 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-23 18:05:56 -05:00
Dwight
3111e5411e BSONObjBuilderValueStream bug fix 2009-02-23 18:05:38 -05:00
Eliot Horowitz
9b3b8d33e1 sharding checkpoint and copy and paste error 2009-02-23 17:43:55 -05:00
Eliot Horowitz
c11f524915 comments 2009-02-23 17:32:47 -05:00
Eliot Horowitz
f447474a7a only make decision on shards based on filter 2009-02-23 14:32:00 -05:00
Eliot Horowitz
8dd6211608 dos2unix 2009-02-23 14:14:03 -05:00
Dwight
e5e195ee39 new file 2009-02-23 13:56:54 -05:00
Dwight
b23ec0964c compile windows 2009-02-23 09:50:45 -05:00
Eliot Horowitz
00eb714709 sharding query work - works of only need 1 server 2009-02-21 23:39:41 -05:00
Eliot Horowitz
2c6dd718c8 check for error save 2009-02-20 15:07:59 -05:00
Eliot Horowitz
c97ed5184b moveshard 2009-02-20 13:46:57 -05:00
Eliot Horowitz
206b92fce3 merge conflict checkpoint
some cloneCollection fixes
some moveShard work
2009-02-20 12:47:59 -05:00
Aaron
7939f06889 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-20 10:48:50 -05:00
Aaron
6f25a72ec3 'better' LazyString 2009-02-20 10:48:32 -05:00
Eliot Horowitz
5f6aa4f67d insert shard checkpoint 2009-02-20 10:46:42 -05:00
Eliot Horowitz
5ade1a8b3d split command 2009-02-19 17:32:19 -05:00
Eliot Horowitz
a55abd3fa2 lots of low level shard infrastructure in place now 2009-02-19 13:26:25 -05:00
Eliot Horowitz
524e8fd53c Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-19 12:55:13 -05:00
Eliot Horowitz
07cdf76329 shard infrastructure checkpoint 2009-02-19 12:55:01 -05:00
Aaron
6df7d02ce8 Don't create string unless we're actually going to log 2009-02-19 12:03:15 -05:00
Aaron
b1d9032447 Get rid of stringable class, use implicit type conversion to string instead 2009-02-18 22:17:30 -05:00
Aaron
610fcd7c74 Remove compiler warning 2009-02-18 15:28:45 -05:00
Eliot Horowitz
60bbf36d1d Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-18 13:54:43 -05:00
Eliot Horowitz
bd5a594333 some sharding commands stubbed 2009-02-18 13:54:22 -05:00
Aaron
593bf1f126 virtual dtors == good 2009-02-18 13:42:32 -05:00
Eliot Horowitz
163bd066bd cleaning, better test system 2009-02-18 10:59:13 -05:00
Eliot Horowitz
8e203da1d2 switch to UnitTest 2009-02-18 10:10:39 -05:00
Eliot Horowitz
8f65a14db1 shard object cleaning, split, ShardKey api cleaning 2009-02-17 23:31:27 -05:00
dwight
22085b0540 add a couple virtual destructors just to be safe 2009-02-17 19:21:01 -05:00
dwight
f4a3b464ec Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-17 18:40:59 -05:00
dwight
1da901f2bf compile mongos on windows 2009-02-17 18:40:27 -05:00
Eliot Horowitz
e74408dc7a checkpoint for sharding object stuff 2009-02-17 15:34:52 -05:00
Eliot Horowitz
73c8977fab shardkey api, more shard api work 2009-02-17 14:41:31 -05:00
Eliot Horowitz
ea976ed9fa name cleaning 2009-02-17 11:41:34 -05:00
Eliot Horowitz
64027ed897 movePrimary test and fix 2009-02-17 10:47:28 -05:00
Eliot Horowitz
7e17d07e52 remove hack form before 2009-02-17 10:26:15 -05:00
Eliot Horowitz
2aae06ec8b fix giving config servers with/without port 2009-02-17 10:25:35 -05:00
Eliot Horowitz
d74b746c31 fix host dns resoltion with port numbers 2009-02-17 10:05:35 -05:00
Eliot Horowitz
b4a918ff94 handle failures better 2009-02-14 09:42:18 -05:00
Eliot Horowitz
c949969fa2 partial movePrimary 2009-02-13 16:18:14 -05:00
Eliot Horowitz
471618efe1 make temporary primary assignment less useless 2009-02-13 10:06:56 -05:00
Eliot Horowitz
fe4892bbf8 option to not create database object on getDBConfig 2009-02-13 10:01:59 -05:00
Eliot Horowitz
197dc2b66d just file re-org 2009-02-13 09:28:23 -05:00
Eliot Horowitz
a835ed1af5 renamed dbgrid s 2009-02-13 09:22:04 -05:00