summaryrefslogtreecommitdiffstats
path: root/database/engine/rrdengine.h
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2022-10-24 10:20:39 +0300
committerGitHub <noreply@github.com>2022-10-24 10:20:39 +0300
commit29271f575a65ed5cd13265413bff3b32398bd538 (patch)
tree7da78a9ff849172b833659b7e59332bd6251b18b /database/engine/rrdengine.h
parenta9135f47bbb36e9cb437b18a7109607569580db7 (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.h4
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;