diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-11-17 19:33:18 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-11-17 19:33:18 +0900 |
| commit | 4d105a2686885d7ff682ed1bf702b81372708482 (patch) | |
| tree | 0c30b8fb62ede330776923df3def60869bad4402 /src/RequestGroup.cc | |
| parent | c4334ec57908864fed952c52c6b6416ecd40f514 (diff) | |
Limit number of opened file globally with --bt-max-open-files option
This change changes the behavior of --bt-max-open-files. Previously,
it specifies the maximum number of opened files for each multi-file
download. Since it is more useful to limit the number globally, the
option now specifies the global limit. This change suggests that
aria2.changeOption() method now ignores --bt-max-open-files and
aria2.changeGlobalOption now reads it and dynamically change the
limit.
Diffstat (limited to 'src/RequestGroup.cc')
| -rw-r--r-- | src/RequestGroup.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index f8db9c91..55ea2783 100644 --- a/src/RequestGroup.cc +++ b/src/RequestGroup.cc @@ -614,6 +614,7 @@ void RequestGroup::initPieceStorage() tempPieceStorage = ps; } tempPieceStorage->initStorage(); + tempPieceStorage->getDiskAdaptor()->setRequestGroupMan(requestGroupMan_); segmentMan_ = std::make_shared<SegmentMan>(downloadContext_, tempPieceStorage); pieceStorage_ = tempPieceStorage; } |
