diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2022-10-24 10:20:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 10:20:39 +0300 |
commit | 29271f575a65ed5cd13265413bff3b32398bd538 (patch) | |
tree | 7da78a9ff849172b833659b7e59332bd6251b18b /database/engine/rrdengine.h | |
parent | a9135f47bbb36e9cb437b18a7109607569580db7 (diff) |
Use mmap to read an extent from a datafile (#13834)
* Use MMAP to read an extent from the datafile. Fallback to uv_fs_read if that fails
* Schedule the fallback using uv_fs_read in the MMAP callback
* Check the return value of mmap correctly
* Add unlikely
Diffstat (limited to 'database/engine/rrdengine.h')
-rw-r--r-- | database/engine/rrdengine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/database/engine/rrdengine.h b/database/engine/rrdengine.h index 2bb70ddf53..fedadbe861 100644 --- a/database/engine/rrdengine.h +++ b/database/engine/rrdengine.h @@ -105,8 +105,12 @@ struct rrdeng_cmdqueue { struct extent_io_descriptor { uv_fs_t req; + uv_work_t req_worker; uv_buf_t iov; + uv_file file; void *buf; + void *map_base; + size_t map_length; uint64_t pos; unsigned bytes; struct completion *completion; |