summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoryellow <yellow@10gen.com>2009-01-31 21:46:47 +0000
committeryellow <yellow@10gen.com>2009-01-31 21:46:47 +0000
commitc4e874bed77f3f9100a2b32e5199996d35fe258c (patch)
tree59787ba8a420c91041e2063fd1e3fd1f16b52afe /tools
parent51ae7207985b70bae2afddbd02012d76871d0041 (diff)
downloadmongo-c4e874bed77f3f9100a2b32e5199996d35fe258c.tar.gz
don't try to import files of size 0
Diffstat (limited to 'tools')
-rw-r--r--tools/import.cpp3
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;