summaryrefslogtreecommitdiff
path: root/db/introspect.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-02-23 17:55:13 -0500
committerAaron <aaron@10gen.com>2009-02-23 17:55:13 -0500
commit743665fc93543ce484a68796f4f7d7adf07bbccf (patch)
tree4cd076bea15c31453ee1b7359e629b27331613b5 /db/introspect.cpp
parent4e7e04d59cd4d46c81380db7bea9afed6ff014bb (diff)
downloadmongo-743665fc93543ce484a68796f4f7d7adf07bbccf.tar.gz
Add 'cursorInfo' command, remove old method of getting information about cursors
Diffstat (limited to 'db/introspect.cpp')
-rw-r--r--db/introspect.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/db/introspect.cpp b/db/introspect.cpp
index 998e46ca8fe..4aeeda179c5 100644
--- a/db/introspect.cpp
+++ b/db/introspect.cpp
@@ -26,24 +26,6 @@
namespace mongo {
- typedef map<string,Cursor*> StringToCursor;
- StringToCursor *specialNamespaces;
-
- auto_ptr<Cursor> getSpecialCursor(const char *ns) {
- StringToCursor::iterator it = specialNamespaces->find(ns);
- return auto_ptr<Cursor>
- (it == specialNamespaces->end() ?
- 0 : it->second->clone());
- }
-
- void SingleResultObjCursor::reg(const char *as) {
- if ( specialNamespaces == 0 )
- specialNamespaces = new StringToCursor();
- if ( specialNamespaces->count(as) == 0 ) {
- (*specialNamespaces)[as] = this;
- }
- }
-
void profile(const char *str,
int millis)
{