summaryrefslogtreecommitdiff
path: root/db/introspect.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-01-15 10:17:11 -0500
committerAaron <aaron@10gen.com>2009-01-15 10:17:11 -0500
commit90d45238aa5fccb6dbdf0b40dfcf5823695d4643 (patch)
tree7a95e901512b890eb06309af2edd0da9c88b7279 /db/introspect.cpp
parent938c2c07a8032259527b8e9cbb6d0d12c7e8867a (diff)
downloadmongo-90d45238aa5fccb6dbdf0b40dfcf5823695d4643.tar.gz
Indent all lines within namespaces one level
Diffstat (limited to 'db/introspect.cpp')
-rw-r--r--db/introspect.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/db/introspect.cpp b/db/introspect.cpp
index d78bb68e59c..998e46ca8fe 100644
--- a/db/introspect.cpp
+++ b/db/introspect.cpp
@@ -26,34 +26,34 @@
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;
+ 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)
+ {
+ BSONObjBuilder b;
+ b.appendDate("ts", jsTime());
+ b.append("info", str);
+ b.append("millis", (double) millis);
+ BSONObj p = b.done();
+ theDataFileMgr.insert(database->profileName.c_str(),
+ p.objdata(), p.objsize(), true);
}
-}
-
-void profile(const char *str,
- int millis)
-{
- BSONObjBuilder b;
- b.appendDate("ts", jsTime());
- b.append("info", str);
- b.append("millis", (double) millis);
- BSONObj p = b.done();
- theDataFileMgr.insert(database->profileName.c_str(),
- p.objdata(), p.objsize(), true);
-}
} // namespace mongo