示例#1
0
文件: mongommf.cpp 项目: pdex/mongo
 bool MongoMMF::open(string fname, bool sequentialHint) {
     setPath(fname);
     _view_write = mapWithOptions(fname.c_str(), sequentialHint ? SEQUENTIAL : 0);
     return finishOpening();
 }
示例#2
0
 bool DurableMappedFile::open(const std::string& fname, bool sequentialHint) {
     LOG(3) << "mmf open " << fname << endl;
     setPath(fname);
     _view_write = mapWithOptions(fname.c_str(), sequentialHint ? SEQUENTIAL : 0);
     return finishOpening();
 }