From fe0226cd791007e63bc7f2e3244dbbdcd1cfdf7e Mon Sep 17 00:00:00 2001 From: dwight Date: Sat, 24 Oct 2009 14:34:54 -0400 Subject: [PATCH] MINOR global var cleanup --- db/db.cpp | 5 ----- db/instance.cpp | 2 -- db/pdfile.cpp | 2 -- 3 files changed, 9 deletions(-) diff --git a/db/db.cpp b/db/db.cpp index a7541776f07..c804df1fdf4 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -53,15 +53,10 @@ namespace mongo { extern string bind_ip; extern char *appsrvPath; -// extern int curOp; extern bool autoresync; extern int opLogging; extern OpLog _oplog; extern int lenForNewNsFiles; - - extern int ctr; - extern int callDepth; - extern int lockFile; void setupSignals(); diff --git a/db/instance.cpp b/db/instance.cpp index 1330823bd2a..2469769a2a9 100644 --- a/db/instance.cpp +++ b/db/instance.cpp @@ -501,8 +501,6 @@ namespace mongo { } } - extern int callDepth; - class JniMessagingPort : public AbstractMessagingPort { public: JniMessagingPort(Message& _container) : container(_container) { } diff --git a/db/pdfile.cpp b/db/pdfile.cpp index fb478bc4f49..8f2319c701f 100644 --- a/db/pdfile.cpp +++ b/db/pdfile.cpp @@ -48,7 +48,6 @@ namespace mongo { map databases; int MAGIC = 0x1000; // int curOp = -2; - int callDepth = 0; extern int otherTraceLevel; void addNewNamespaceToCatalog(const char *ns, const BSONObj *options = 0); @@ -69,7 +68,6 @@ namespace mongo { ss << cc().ns() << ' '; } } - ss << callDepth; return ss.str(); }