diff options
author | Aaron <aaron@10gen.com> | 2009-05-20 11:39:12 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-05-20 11:39:12 -0400 |
commit | da7a9b3f71a151b17665d7033370adb5507bf3fd (patch) | |
tree | a5f460a69459909e3878a6661b631465b3f63fe8 /tools/restore.cpp | |
parent | b8c6d85506d04c3b9d9b804fcf6d1e763b55f963 (diff) | |
download | mongo-da7a9b3f71a151b17665d7033370adb5507bf3fd.tar.gz |
make tools capable of running standalone, without a mongod instance
Diffstat (limited to 'tools/restore.cpp')
-rw-r--r-- | tools/restore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/restore.cpp b/tools/restore.cpp index aa36b901ce1..56e360a1699 100644 --- a/tools/restore.cpp +++ b/tools/restore.cpp @@ -95,7 +95,7 @@ public: while ( read < mmf.length() ) { BSONObj o( data ); - _conn.insert( ns.c_str() , o ); + conn().insert( ns.c_str() , o ); read += o.objsize(); data += o.objsize(); |