diff options
author | root <root@rshg047.dnsready.net> | 2011-05-26 22:47:02 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-26 22:47:02 +0000 |
commit | 956ae4eb53422c92f78d86d5511f25fbf6fa6497 (patch) | |
tree | caf6b75559c4c4d94ad9f94c1909f410c90e2ad0 /community/mongodb/gcc46fixes2.diff | |
parent | 6e35be4b44d90f92ddceb8b067cbbf03fc652a35 (diff) |
Thu May 26 22:47:02 UTC 2011
Diffstat (limited to 'community/mongodb/gcc46fixes2.diff')
-rw-r--r-- | community/mongodb/gcc46fixes2.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/mongodb/gcc46fixes2.diff b/community/mongodb/gcc46fixes2.diff new file mode 100644 index 000000000..17257b136 --- /dev/null +++ b/community/mongodb/gcc46fixes2.diff @@ -0,0 +1,26 @@ +commit 5931bc0231c91ecdfc5dd313d8cce578eae426bb +Author: Eliot Horowitz <eliot@10gen.com> +Date: Wed Mar 30 01:01:18 2011 -0400 + + remove unused variable + +diff --git a/db/commands.cpp b/db/commands.cpp +index c301fb3..0bbd765 100644 +--- a/db/commands.cpp ++++ b/db/commands.cpp +@@ -127,7 +127,6 @@ namespace mongo { + if ( strcmp(p, ".$cmd") != 0 ) return false; + + bool ok = false; +- bool valid = false; + + BSONElement e = jsobj.firstElement(); + map<string,Command*>::iterator i; +@@ -138,7 +137,6 @@ namespace mongo { + migrated over to the command object format. + */ + else if ( (i = _commands->find(e.fieldName())) != _commands->end() ) { +- valid = true; + string errmsg; + Command *c = i->second; + if ( c->adminOnly() && !startsWith(ns, "admin.") ) { |