Commit a2bbe520 authored by Huihuo Zheng's avatar Huihuo Zheng
Browse files

push

parent c37c9100
......@@ -309,7 +309,7 @@ herr_t H5DMMF_remap() {
munmap(H5DMM.buf, ss);
close(H5DMM.fd);
H5DMM.fd = open(H5DMM.filename, O_RDWR);
H5DMM.buf = mmap(NULL, H5DMM.size, PROT_READ | PROT_WRITE, MAP_SHARED, H5DMM.fd, 0);
H5DMM.buf = mmap(NULL, ss, PROT_READ | PROT_WRITE, MAP_SHARED, H5DMM.fd, 0);
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