mdbx: rework mdbx_filesync().

This commit is contained in:
Leonid Yuriev
2019-08-20 00:17:28 +03:00
parent 226cb3ac90
commit ccbf3a2bcf
3 changed files with 35 additions and 32 deletions

View File

@@ -522,7 +522,13 @@ int mdbx_thread_create(mdbx_thread_t *thread,
void *arg);
int mdbx_thread_join(mdbx_thread_t thread);
int mdbx_filesync(mdbx_filehandle_t fd, bool fullsync);
enum mdbx_syncmode_bits {
MDBX_SYNC_DATA = 1,
MDBX_SYNC_SIZE = 2,
MDBX_SYNC_IODQ = 4
};
int mdbx_filesync(mdbx_filehandle_t fd, enum mdbx_syncmode_bits mode_bits);
int mdbx_filesize_sync(mdbx_filehandle_t fd);
int mdbx_ftruncate(mdbx_filehandle_t fd, uint64_t length);
int mdbx_fseek(mdbx_filehandle_t fd, uint64_t pos);