Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-10-25 17:17:07 +0300
committerMichaƫl Zasso <targos@protonmail.com>2019-10-31 13:34:45 +0300
commit07b5584a3f2c8bbacdc23712e4e094f1ec42868d (patch)
treec62db1a49a9e0ab50e68cc4cfeefa9c5a500fa87 /src/node_dir.h
parente4ab6fced1445c03176d3ce7c394c74ec4f3269b (diff)
fs: add `bufferSize` option to `fs.opendir()`
Add an option that controls the size of the internal buffer. Fixes: https://github.com/nodejs/node/issues/29941 PR-URL: https://github.com/nodejs/node/pull/30114 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_dir.h')
-rw-r--r--src/node_dir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_dir.h b/src/node_dir.h
index 03e4a06efce..ae6d0eb170d 100644
--- a/src/node_dir.h
+++ b/src/node_dir.h
@@ -45,8 +45,8 @@ class DirHandle : public AsyncWrap {
void GCClose();
uv_dir_t* dir_;
- // Up to 32 directory entries are read through a single libuv call.
- uv_dirent_t dirents_[32];
+ // Multiple entries are read through a single libuv call.
+ std::vector<uv_dirent_t> dirents_;
bool closing_ = false;
bool closed_ = false;
};