This does not guarantee the creation of operation.log and could end up in missing metadata information (about the presence of the op log file) and hence loss of any op logs entries.
This was observed when a crash was simulated after creation of a file /mnt/pmem_emul/foo but upon restart, the operation.log file was missing. Adding an fsync resolved the presence of operation.log issue.
After creating the operation log file, we do not seem to be doing an
fsync
.This does not guarantee the creation of
operation.log
and could end up in missing metadata information (about the presence of the op log file) and hence loss of any op logs entries.This was observed when a crash was simulated after creation of a file
/mnt/pmem_emul/foo
but upon restart, theoperation.log
file was missing. Adding anfsync
resolved the presence of operation.log issue.PS: The same is true for
append.log