summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-02-09 10:55:59 -0500
committerEliot Horowitz <eliot@10gen.com>2009-02-09 10:55:59 -0500
commit6f78b4ae5e26ba742fb68e272d823327fb602dcf (patch)
treebb40bc6bfd0977e2c9a542c850ff92766379492f
parentbc55e5a63b37563f23faa0aa9bee3c6127d2c743 (diff)
downloadmongo-6f78b4ae5e26ba742fb68e272d823327fb602dcf.tar.gz
remove the EOF check - too aggressive
-rw-r--r--tools/import.cpp7
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;
}