summaryrefslogtreecommitdiff
path: root/db/security.cpp
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-10-13 16:01:02 -0400
committerDwight <dmerriman@gmail.com>2009-10-13 16:01:02 -0400
commit2d934d1006c7c018fad0cdfe91dc4e2b00d2107e (patch)
tree7fc9077c7cc8905b527ed4cdc33e4449252f5d4a /db/security.cpp
parent1083a425c27e0a8b37b191af75cddb92f5a251e5 (diff)
downloadmongo-2d934d1006c7c018fad0cdfe91dc4e2b00d2107e.tar.gz
move curNs to Client object
Diffstat (limited to 'db/security.cpp')
-rw-r--r--db/security.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/security.cpp b/db/security.cpp
index d8e35aa1b23..6730be9afc4 100644
--- a/db/security.cpp
+++ b/db/security.cpp
@@ -24,6 +24,15 @@ namespace mongo {
boost::thread_specific_ptr<Client> currentClient;
+ Client::Client() : _ns(""), _nsstr("") {
+ ai = new AuthenticationInfo();
+ }
+
+ Client::~Client() {
+cout << "TEMP" << endl;
+ delete ai;
+ }
+
bool noauth = true;
int AuthenticationInfo::warned;