summaryrefslogtreecommitdiff
path: root/shell/shell_utils.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2011-06-18 21:24:54 +0200
committerAntonin Kral <a.kral@bobek.cz>2011-06-18 21:24:54 +0200
commitfefb1e355f6cbe35160f2f73ed68a38d95fa59a2 (patch)
treefaecb2fb6677516c5f6d9edfae8475344ddd73ed /shell/shell_utils.cpp
parentd95b46b2bbb5b4246213f252010508489b4e5719 (diff)
parent64b33ee522375a8dc15be2875dfb7db4502259b0 (diff)
downloadmongodb-fefb1e355f6cbe35160f2f73ed68a38d95fa59a2.tar.gz
Merge commit 'upstream/1.8.2'
Diffstat (limited to 'shell/shell_utils.cpp')
-rw-r--r--shell/shell_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/shell_utils.cpp b/shell/shell_utils.cpp
index 7a62030..09a3e46 100644
--- a/shell/shell_utils.cpp
+++ b/shell/shell_utils.cpp
@@ -265,7 +265,7 @@ namespace mongo {
BSONElement e = oneArg(args);
bool found = false;
- path root( args.firstElement().valuestrsafe() );
+ path root( e.valuestrsafe() );
if ( boost::filesystem::exists( root ) ) {
found = true;
boost::filesystem::remove_all( root );