Commit 8e430a7d authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

port to windows refs[t:2170]

git-svn-id: file:///svn/toku/tokudb@15847 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4a9564b1
......@@ -109,6 +109,8 @@ toku_os_pwrite (int fd, const void *buf, size_t len, toku_off_t off)
}
static int (*t_fsync)(int) = 0;
static uint64_t toku_fsync_count;
static uint64_t toku_fsync_time;
int
toku_set_func_fsync(int (*fsync_function)(int)) {
......@@ -125,3 +127,10 @@ toku_file_fsync(int fd) {
r = fsync(fd);
return r;
}
void
toku_get_fsync_times(uint64_t *fsync_count, uint64_t *fsync_time) {
*fsync_count = toku_fsync_count;
*fsync_time = toku_fsync_time;
}
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