Skip to content

Commit

Permalink
cant shard local db
Browse files Browse the repository at this point in the history
  • Loading branch information
dwight committed Apr 12, 2011
1 parent c440cb9 commit 4ea7daa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions s/commands_admin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ namespace mongo {
errmsg = "can't shard the admin db";
return false;
}
if ( dbname == "local" ) {
errmsg = "can't shard the local db";
return false;
}

DBConfigPtr config = grid.getDBConfig( dbname );
if ( config->isShardingEnabled() ) {
Expand Down

0 comments on commit 4ea7daa

Please sign in to comment.