summaryrefslogtreecommitdiff
path: root/db/pdfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/pdfile.cpp')
-rw-r--r--db/pdfile.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp
index 3fe3516d060..ccf5806784c 100644
--- a/db/pdfile.cpp
+++ b/db/pdfile.cpp
@@ -35,6 +35,8 @@ _ disallow system* manipulations from the database.
#include "query.h"
#include "repl.h"
+namespace mongo {
+
extern bool quota;
extern int port;
@@ -993,8 +995,12 @@ void pdfileInit() {
theDataFileMgr.init(dbpath);
}
+} // namespace mongo
+
#include "clientcursor.h"
+namespace mongo {
+
void dropDatabase(const char *ns) {
// ns is of the form "<dbname>.$cmd"
char cl[256];
@@ -1080,7 +1086,9 @@ boost::intmax_t dbSize( const char *database ) {
}
#if !defined(_WIN32)
+} // namespace mongo
#include <sys/statvfs.h>
+namespace mongo {
#endif
boost::intmax_t freeSpace() {
#if !defined(_WIN32)
@@ -1147,3 +1155,5 @@ bool repairDatabase( const char *ns, string &errmsg,
return true;
}
+
+} // namespace mongo