Commit 8d115c51 authored by Huihuo Zheng's avatar Huihuo Zheng
Browse files

remap to

parent f48ee599
......@@ -321,10 +321,8 @@ herr_t H5DMMF_remap() {
if (strcmp("MEMORY", getenv("SSD_CACHE_PATH"))!=0) {
munmap(H5DMM.buf, ss);
close(H5DMM.fd);
cout << "reopen files" << endl;
H5DMM.fd = open(H5DMM.filename, O_RDWR);
H5DMM.buf = mmap(NULL, H5DMM.size, PROT_READ | PROT_WRITE, MAP_SHARED, H5DMM.fd, 0);
cout << "mmap" << endl;
msync(H5DMM.buf, ss, MS_SYNC);
}
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment