summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <erh@erh-hp1.(none)>2009-06-11 12:32:19 -0400
committerEliot Horowitz <erh@erh-hp1.(none)>2009-06-11 12:32:19 -0400
commitdba174cb193de809ee927282f95a572c1680896c (patch)
tree76c5c769eea9945a3e6ec19c1decb729536a1c97
parentd5088e4c9c05324d5115be2cb68de8a5e5c0aa14 (diff)
downloadmongo-dba174cb193de809ee927282f95a572c1680896c.tar.gz
work around assert in mmap
-rw-r--r--tools/restore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/restore.cpp b/tools/restore.cpp
index 269a95a7cfe..1a70c164bdc 100644
--- a/tools/restore.cpp
+++ b/tools/restore.cpp
@@ -87,7 +87,8 @@ public:
out() << "\t going into namespace [" << ns << "]" << endl;
MemoryMappedFile mmf;
- assert( mmf.map( root.string().c_str() ) );
+ int fileLength;
+ assert( mmf.map( root.string().c_str() , fileLength ) );
char * data = (char*)mmf.viewOfs();
int read = 0;