0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
Commit Graph

306 Commits

Author SHA1 Message Date
Eliot Horowitz
d331919eb3 distinct() for sharded collection SHARDING-35 2009-09-12 13:01:34 -04:00
Eliot Horowitz
335d92c443 client id work and make getLastError work non sharded-collections in sharding, but with connection pooling SHARDING-16 2009-09-11 16:14:14 -04:00
Eliot Horowitz
6d48c89851 cleaning old $eval handling that is smarter now 2009-09-11 13:23:30 -04:00
Eliot Horowitz
47a7238303 claener command output for sharding 2009-09-10 13:09:26 -04:00
Eliot Horowitz
29548da4c4 strict compile for windows MINOR 2009-09-10 10:41:17 -04:00
Eliot Horowitz
bbc07f85ec don't allow db.eval on sharded collections SHARDING-27 2009-09-10 10:36:11 -04:00
Eliot Horowitz
b9d61d202c sharding config db versioning SHARDING-33 2009-09-10 00:39:30 -04:00
Eliot Horowitz
c53e909ced cleaning and don't allow group on a sharded collection SHARDING-26 2009-09-04 11:00:43 -04:00
Eliot Horowitz
467dc24e82 generic way to handle commands not allowed on sharded collections 2009-09-04 10:24:32 -04:00
Eliot Horowitz
6adeb37012 don't allow sharding + capped SHARDING-23 2009-09-03 17:19:32 -04:00
Eliot Horowitz
08489a2b42 unique shard key support SHARDING-31 2009-09-03 16:48:34 -04:00
Eliot Horowitz
644df81d21 Merge branch 'master' of git@github.com:mongodb/mongo 2009-09-01 17:29:39 -04:00
Eliot Horowitz
1b344adf4b can't shard a collection with a unique index SHARDING-24 2009-09-01 17:28:58 -04:00
Dwight
e5fb018121 Merge branch 'master' of git@github.com:mongodb/mongo 2009-09-01 16:39:01 -04:00
Eliot Horowitz
cff5abd2f1 sharding indexing fix part1
- inserts to system.indexes need to go to all shards
  - can't create unique index on sharded collection SHARDING-24
2009-09-01 16:30:20 -04:00
Dwight
7172529835 some help for commands 2009-09-01 16:23:56 -04:00
Dwight
777c1883c3 Merge branch 'master' of git@github.com:mongodb/mongo 2009-09-01 16:03:41 -04:00
Dwight
10fc695870 small help text change 2009-09-01 16:03:23 -04:00
Eliot Horowitz
7c11076e73 can't shard system namespaces 2009-09-01 15:59:19 -04:00
Eliot Horowitz
7e03b602ec version number 2009-09-01 14:07:47 -04:00
Eliot Horowitz
7ac635188e make sure new shards are valid SHARDING-29 2009-09-01 14:06:50 -04:00
Eliot Horowitz
3ee681be36 more name changes in sharding 2009-09-01 12:17:41 -04:00
Eliot Horowitz
bcd665877b another name changing checkpoint
config.shard -> config.shards
 config.shard[server] -> config.chunks[shard]
2009-09-01 11:09:43 -04:00
Eliot Horowitz
75e16447a4 starting sharding name cleanup SHARDING-25 2009-08-31 16:31:50 -04:00
Eliot Horowitz
7a3868c91a change mongos version number 2009-08-30 17:05:51 -04:00
dwight
436f29bf1c Merge branch 'master' of git@github.com:mongodb/mongo 2009-08-30 11:23:22 -04:00
dwight
6d6f8d5bf7 rename some sharding commands. 2009-08-30 11:22:58 -04:00
Eliot Horowitz
bc7eeba54e better error message MINOR 2009-08-29 23:49:53 -04:00
dwight
5e31aa0f19 rename
Command addserver->addshard
Collection config.servers->config.shards
2009-08-29 15:08:22 -04:00
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