diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-21 17:44:07 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-21 17:44:07 -0400 |
commit | aa1b777c619a63614a8a8c35e79f55beb352d3fe (patch) | |
tree | 7bc6a0a4b751eb9953f57e916db7b8363c2171f0 /s/config.h | |
parent | ed752e848ce25136b40f200239111713b1c1ae28 (diff) | |
download | mongo-aa1b777c619a63614a8a8c35e79f55beb352d3fe.tar.gz |
database and shard _id is now meaningful
Diffstat (limited to 's/config.h')
-rw-r--r-- | s/config.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/s/config.h b/s/config.h index c64ac809048..a3a1a2371d6 100644 --- a/s/config.h +++ b/s/config.h @@ -30,6 +30,13 @@ #include "shard.h" namespace mongo { + + struct ShardNS { + static string database; + static string shard; + static string chunk; + }; + class Grid; class ConfigServer; @@ -186,7 +193,7 @@ namespace mongo { /** * @return 0 = ok, otherwise error # */ - int checkConfigVersion(); + int checkConfigVersion( bool upgrade ); /** * log a change to config.changes |