Commit Graph

61 Commits

Author SHA1 Message Date
Alberto Lerner
d4e59d32b5 Split early if collection is small 2010-07-23 18:21:54 -04:00
Mathias Stearn
dd79445bbb make more commands work with mongos SERVER-1462 2010-07-22 21:03:24 -04:00
Eliot Horowitz
1f96a00d0b break collections out of database object for sharding into own collection SERVER-1427 2010-07-21 16:25:53 -04:00
Mathias Stearn
97f90e2586 Cleaning up ensureIndex in ChunkManager 2010-07-19 14:08:43 -04:00
Eliot Horowitz
72f2eb24d5 change LazyString to toString rather than (string) 2010-07-17 22:11:21 -04:00
Eliot Horowitz
4882710934 move ShardChunkVersion to util.h 2010-07-16 12:28:26 -04:00
Eliot Horowitz
8a91bd65fe prevent race condition on splits 2010-07-16 10:00:01 -04:00
Eliot Horowitz
9d53bc19ed checkpoint for re-write of migrate transfer
SERVER-1239 SERVER-1404
NOT FULL WORKING YET
2010-07-15 14:18:26 -04:00
Alberto Lerner
ea2286d5e1 SERVER-1185 make it easier to add compound keys 2010-07-14 16:21:39 -04:00
Eliot Horowitz
2b87a4ffa8 Merge branch 'master' of github.com:mongodb/mongo 2010-07-14 14:05:12 -04:00
Eliot Horowitz
8a840a6cac ShardChunkVersion takes BSONElemenet 2010-07-14 14:05:01 -04:00
Alberto Lerner
9891a1d545 SERVER-1185 split->multi-split and testing 2010-07-14 13:58:14 -04:00
Mathias Stearn
79e1244f06 goodbye _getChunksForQuery 2010-07-12 18:28:22 -04:00
Mathias Stearn
350d92f7f7 Chunk::countObjects() uses $min and $max SERVER-951 2010-07-12 18:28:22 -04:00
Mathias Stearn
77622da347 remove getChunksForQuery SERVER-952 2010-07-12 15:57:38 -04:00
Mathias Stearn
13c6875815 temporarily Revert "git rid of "operator string""
This reverts commit 95fa51a1df.
2010-07-07 01:22:33 -04:00
Mathias Stearn
95fa51a1df git rid of "operator string" 2010-07-07 00:30:17 -04:00
Eliot Horowitz
6bd7d29d99 better distributed locking 2010-07-02 16:48:21 -04:00
Eliot Horowitz
92e8ad86fa finish first cut at migrate in mognod and lots of fixes SERVER-933 2010-07-02 00:51:41 -04:00
Eliot Horowitz
2498228f41 workong on moving migrate to mongod, cleaning, and version fixing
SERVER-1319 SERVER-933
2010-07-01 17:44:13 -04:00
Mathias Stearn
e9a9b3bf36 get rid of _chunks vector 2010-06-30 20:33:58 -04:00
Mathias Stearn
30e583d1b2 Useful Chunk Constructors 2010-06-30 20:33:58 -04:00
Mathias Stearn
795144c622 Chunk doesn't need its own copy of ns 2010-06-30 20:33:58 -04:00
Eliot Horowitz
e6368b8beb nicer chunk versions 2010-06-30 00:03:10 -04:00
Mathias Stearn
3b37957322 cache list of shards SERVER-952 2010-06-29 20:40:29 -04:00
Eliot Horowitz
95d59d3dc3 first cut at using applyOps for updating chunk info 2010-06-29 17:57:29 -04:00
Eliot Horowitz
0606c4947e don't lock in ChunkManager constructor 2010-06-02 17:01:28 -04:00
Mathias Stearn
418e679054 Chunk now uses enable_shared_from_this 2010-05-28 17:24:03 -04:00
Eliot Horowitz
ffd977a64c don't leak ChunkManager use - shared_ptr 2010-05-26 12:40:46 -04:00
Eliot Horowitz
4bdbf1fc67 use shared_ptr for Chunk references
handle splits on another server during splits SERVER-1109
2010-05-24 17:24:41 -04:00
Mathias Stearn
b35be1cbb4 Better debugging for invalid chunk case 2010-05-20 12:18:07 -04:00
Mathias Stearn
0b6d9c5a4d Reload chunks if got invalid config. SERVER-1135 2010-05-19 15:26:17 -04:00
Eliot Horowitz
0853f8cb20 on min/max split, make chunk size 10% smaller so a few more objects won't push over edge 2010-05-11 14:14:16 -04:00
Mathias Stearn
20deda97c2 sharding: Use ChunkRanges rather than Chunks for getChunksForQuery 2010-05-05 14:37:14 -04:00
Mathias Stearn
59ea1f67e4 ChunkRangeManager::upper_bound and lower_bound helpers 2010-05-04 16:58:31 -04:00
Mathias Stearn
c8ef0e5558 ChunkRange and ChunkRangeManager. Maintained but not used yet 2010-05-04 16:49:04 -04:00
Eliot Horowitz
1721270c5b hack invalid config case 2010-04-29 21:04:54 -04:00
Mathias Stearn
33d3ce4ea8 Stream operator for chunks 2010-04-29 14:05:31 -04:00
Eliot Horowitz
65f9f38b1e better sequence numbers 2010-04-27 21:39:58 -04:00
Eliot Horowitz
0a7fd9cc2b stdafx.h -> pch.h part 2 2010-04-27 15:33:27 -04:00
Eliot Horowitz
a19e992925 use Shard class instead of string for passing around Shards 2010-04-27 12:32:59 -04:00
Mathias Stearn
4f4dd053aa Get rid of xassert 2010-04-23 20:14:37 -04:00
Mathias Stearn
bbb8ca9316 ChunkManager::getShardsForQuery SERVER-952 SERVER-943 2010-04-22 16:00:59 -04:00
Eliot Horowitz
ab537aed1d moving towards better thread safey SERVER-944 2010-04-22 15:39:04 -04:00
Eliot Horowitz
a3242b6791 use better _id for chunks 2010-04-22 10:29:05 -04:00
Eliot Horowitz
f1db30470a capped collection changelog 2010-04-20 17:07:10 -04:00
Mathias Stearn
3a25213655 Add chunkMap to ChunkManager. Start of SHARDING-79 2010-04-01 15:41:13 -04:00
Eliot Horowitz
e310776ecf make chunk size configurable and default 200mb 2010-02-12 15:27:43 -05:00
Mathias Stearn
95fa5a3bc7 sharding: ChunkCmp STL compare functor 2010-02-09 12:30:58 -05:00
Mathias Stearn
392d9bfe8d sharding: Chunk const-correctness MINOR 2010-02-09 12:30:58 -05:00