Moving fsync pmdk functionalty from persist to drain on the advice of the PMDK developers

master
Afrian Jackson 2019-11-07 20:17:55 +00:00
parent 339bb200c8
commit 9c0926ef2a
1 changed files with 5 additions and 6 deletions

View File

@ -106,6 +106,7 @@ static void *PMDK_Create(char * testFileName, IOR_param_t * param){
}
return((void *)pmemaddr);
} /* PMDK_Create() */
@ -184,9 +185,7 @@ static IOR_offset_t PMDK_Xfer(int access, void *file, IOR_size_t * buffer,
static void PMDK_Fsync(void *fd, IOR_param_t * param)
{
size_t open_length;
open_length = param->transferSize;
pmem_persist(&fd, open_length);
pmem_drain();
} /* PMDK_Fsync() */