diff options
author | Eliot Horowitz <erh@erh-hp1.(none)> | 2009-06-11 12:32:19 -0400 |
---|---|---|
committer | Eliot Horowitz <erh@erh-hp1.(none)> | 2009-06-11 12:32:19 -0400 |
commit | dba174cb193de809ee927282f95a572c1680896c (patch) | |
tree | 76c5c769eea9945a3e6ec19c1decb729536a1c97 | |
parent | d5088e4c9c05324d5115be2cb68de8a5e5c0aa14 (diff) | |
download | mongo-dba174cb193de809ee927282f95a572c1680896c.tar.gz |
work around assert in mmap
-rw-r--r-- | tools/restore.cpp | 3 |
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; |