diff options
author | yellow <yellow@10gen.com> | 2009-01-31 21:46:47 +0000 |
---|---|---|
committer | yellow <yellow@10gen.com> | 2009-01-31 21:46:47 +0000 |
commit | c4e874bed77f3f9100a2b32e5199996d35fe258c (patch) | |
tree | 59787ba8a420c91041e2063fd1e3fd1f16b52afe /tools | |
parent | 51ae7207985b70bae2afddbd02012d76871d0041 (diff) | |
download | mongo-c4e874bed77f3f9100a2b32e5199996d35fe258c.tar.gz |
don't try to import files of size 0
Diffstat (limited to 'tools')
-rw-r--r-- | tools/import.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/import.cpp b/tools/import.cpp index c4e93258e21..5c8b4142f80 100644 --- a/tools/import.cpp +++ b/tools/import.cpp @@ -79,6 +79,9 @@ public: ns += "." + l; } + if ( boost::filesystem::file_size( root ) == 0 ) + return; + out() << "\t going into namespace [" << ns << "]" << endl; MemoryMappedFile mmf; |