diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-09-01 16:30:20 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-09-01 16:30:20 -0400 |
commit | cff5abd2f140e73455c469d7242a55882650785b (patch) | |
tree | 26491fe2bda9d0a9e1a4bcb9fc646415435149b7 /s/request.h | |
parent | 7c11076e7334c6420d33f9d442f7eb3ddba4f4d4 (diff) | |
download | mongo-cff5abd2f140e73455c469d7242a55882650785b.tar.gz |
sharding indexing fix part1
- inserts to system.indexes need to go to all shards
- can't create unique index on sharded collection SHARDING-24
Diffstat (limited to 's/request.h')
-rw-r--r-- | s/request.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/s/request.h b/s/request.h index 58b8dca7980..6be88afee3c 100644 --- a/s/request.h +++ b/s/request.h @@ -33,9 +33,12 @@ namespace mongo { DBConfig * getConfig(){ return _config; } + bool isShardingEnabled(){ + return _config->isShardingEnabled(); + } ChunkManager * getChunkManager(){ - return _shardInfo; + return _chunkManager; } // ---- remote location info ----- @@ -69,7 +72,7 @@ namespace mongo { MSGID _id; DBConfig * _config; - ChunkManager * _shardInfo; + ChunkManager * _chunkManager; }; class StaleConfigException : public std::exception { |