summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2015-03-10 14:45:55 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2015-03-10 18:01:52 -0400
commit816efed843cf368841ff1ef6bb2f549e91173e5e (patch)
tree5cf00a67c682e6e95784ca7968c2f1fb955fdb54
parent300a825f5e59ac7bf9e6273caba3b59b603e9431 (diff)
downloadmongo-816efed843cf368841ff1ef6bb2f549e91173e5e.tar.gz
SERVER-17470 Remove link to replset data in the http server
-rw-r--r--src/mongo/db/clientcursor.cpp2
-rw-r--r--src/mongo/db/commands/list_collections.cpp2
-rw-r--r--src/mongo/db/commands/list_indexes.cpp2
-rw-r--r--src/mongo/db/dbwebserver.cpp4
-rw-r--r--src/mongo/s/cursors.cpp2
5 files changed, 5 insertions, 7 deletions
diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp
index 370bbf40683..313ff7f7ed3 100644
--- a/src/mongo/db/clientcursor.cpp
+++ b/src/mongo/db/clientcursor.cpp
@@ -323,7 +323,7 @@ namespace mongo {
// TODO: remove this for 3.0
class CmdCursorInfo : public Command {
public:
- CmdCursorInfo() : Command( "cursorInfo", true ) {}
+ CmdCursorInfo() : Command( "cursorInfo" ) {}
virtual bool slaveOk() const { return true; }
virtual void help( stringstream& help ) const {
help << " example: { cursorInfo : 1 }, deprecated";
diff --git a/src/mongo/db/commands/list_collections.cpp b/src/mongo/db/commands/list_collections.cpp
index 90f9240fa79..3c25e39d088 100644
--- a/src/mongo/db/commands/list_collections.cpp
+++ b/src/mongo/db/commands/list_collections.cpp
@@ -70,7 +70,7 @@ namespace mongo {
out->push_back(Privilege(ResourcePattern::forDatabaseName(dbname), actions));
}
- CmdListCollections() : Command( "listCollections", true ) {}
+ CmdListCollections() : Command( "listCollections" ) {}
bool run(OperationContext* txn,
const string& dbname,
diff --git a/src/mongo/db/commands/list_indexes.cpp b/src/mongo/db/commands/list_indexes.cpp
index f4af735e235..8e3243fbcac 100644
--- a/src/mongo/db/commands/list_indexes.cpp
+++ b/src/mongo/db/commands/list_indexes.cpp
@@ -83,7 +83,7 @@ namespace mongo {
out->push_back(Privilege(parseResourcePattern( dbname, cmdObj ), actions));
}
- CmdListIndexes() : Command( "listIndexes", true ) {}
+ CmdListIndexes() : Command( "listIndexes" ) {}
bool run(OperationContext* txn,
const string& dbname,
diff --git a/src/mongo/db/dbwebserver.cpp b/src/mongo/db/dbwebserver.cpp
index 893ad844f46..7b81a0a7ca2 100644
--- a/src/mongo/db/dbwebserver.cpp
+++ b/src/mongo/db/dbwebserver.cpp
@@ -259,10 +259,8 @@ namespace mongo {
dbname = z.str();
}
ss << start(dbname) << h2(dbname);
- ss << "<p><a href=\"/_commands\">List all commands</a> | \n";
- ss << "<a href=\"/_replSet\">Replica set status</a></p>\n";
+ ss << "<p><a href=\"/_commands\">List all commands</a></p>\n";
- //ss << "<a href=\"/_status\">_status</a>";
{
const Command::CommandMap* m = Command::webCommands();
if( m ) {
diff --git a/src/mongo/s/cursors.cpp b/src/mongo/s/cursors.cpp
index 19371affc8a..3fd45ecaa0e 100644
--- a/src/mongo/s/cursors.cpp
+++ b/src/mongo/s/cursors.cpp
@@ -485,7 +485,7 @@ namespace mongo {
class CmdCursorInfo : public Command {
public:
- CmdCursorInfo() : Command( "cursorInfo", true ) {}
+ CmdCursorInfo() : Command( "cursorInfo" ) {}
virtual bool slaveOk() const { return true; }
virtual void help( stringstream& help ) const {
help << " example: { cursorInfo : 1 }";