diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-02-09 10:55:59 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-02-09 10:55:59 -0500 |
commit | 6f78b4ae5e26ba742fb68e272d823327fb602dcf (patch) | |
tree | bb40bc6bfd0977e2c9a542c850ff92766379492f | |
parent | bc55e5a63b37563f23faa0aa9bee3c6127d2c743 (diff) | |
download | mongo-6f78b4ae5e26ba742fb68e272d823327fb602dcf.tar.gz |
remove the EOF check - too aggressive
-rw-r--r-- | tools/import.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/import.cpp b/tools/import.cpp index 5c8b4142f80..5e16cb3e495 100644 --- a/tools/import.cpp +++ b/tools/import.cpp @@ -93,18 +93,13 @@ public: int num = 0; while ( read < mmf.length() ) { - if ( ! *data ) { - out() << "\t ** got unexpected end of file ** continuing..." << endl; - break; - } - BSONObj o( data ); _conn.insert( ns.c_str() , o ); read += o.objsize(); data += o.objsize(); - + if ( ! ( ++num % 1000 ) ) out() << "read " << read << "/" << mmf.length() << " bytes so far. " << num << " objects" << endl; } |