Exemplo n.º 1
0
 bool MongoMMF::open(string fname, bool sequentialHint) {
     setPath(fname);
     _view_write = mapWithOptions(fname.c_str(), sequentialHint ? SEQUENTIAL : 0);
     return finishOpening();
 }
Exemplo n.º 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();
 }