diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/mongo/tools/mongoshim_options.cpp | 4 | ||||
-rw-r--r-- | src/mongo/tools/shim.cpp | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore index 6967b92c3d6..2dfc633214f 100644 --- a/.gitignore +++ b/.gitignore @@ -86,6 +86,7 @@ scratch /mongotop /mongooplog /mongoperf +/mongoshim /bsondump /loadgen /docgen diff --git a/src/mongo/tools/mongoshim_options.cpp b/src/mongo/tools/mongoshim_options.cpp index 1839e80f698..53c4e98c23f 100644 --- a/src/mongo/tools/mongoshim_options.cpp +++ b/src/mongo/tools/mongoshim_options.cpp @@ -59,7 +59,7 @@ namespace mongo { } options->addOptionChaining("load", "load", moe::Switch, - "loat data" ); + "load data" ); options->addOptionChaining("drop", "drop", moe::Switch, "drop collection before import" ); @@ -93,7 +93,7 @@ namespace mongo { } void printMongoShimHelp(std::ostream* out) { - *out << "Shim MongoDB data to CSV, TSV or JSON files.\n" << std::endl; + *out << "Read/write directly to stored format.\n" << std::endl; *out << moe::startupOptions.helpString(); *out << std::flush; } diff --git a/src/mongo/tools/shim.cpp b/src/mongo/tools/shim.cpp index 1b34d4b1347..5eb93d262e8 100644 --- a/src/mongo/tools/shim.cpp +++ b/src/mongo/tools/shim.cpp @@ -91,9 +91,7 @@ public: 0, QueryOption_NoCursorTimeout); - long long num = 0; while ( cursor->more() ) { - num++; BSONObj obj = cursor->next(); out->write( obj.objdata(), obj.objsize() ); } |