diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-10-03 17:59:39 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-10-03 17:59:39 +0900 |
| commit | c81b1321122e8509b55c94c0cbca0d8d6d319f0c (patch) | |
| tree | f24b49dd9cceb006172dbd09da4e5f5d3371241b /src/AdaptiveFileAllocationIterator.cc | |
| parent | c63fc414c389c893c80022669a7d75f3c6869c7e (diff) | |
| parent | 85faafcaf233855042aead1cc522375fa7955d7e (diff) | |
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/AdaptiveFileAllocationIterator.cc')
| -rw-r--r-- | src/AdaptiveFileAllocationIterator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AdaptiveFileAllocationIterator.cc b/src/AdaptiveFileAllocationIterator.cc index 36a2e928..f86517a8 100644 --- a/src/AdaptiveFileAllocationIterator.cc +++ b/src/AdaptiveFileAllocationIterator.cc @@ -61,8 +61,8 @@ void AdaptiveFileAllocationIterator::allocateChunk() try { A2_LOG_DEBUG("Testing file system supports fallocate."); if(offset_ < totalLength_) { - int64_t len = std::min(totalLength_-offset_, - static_cast<int64_t>(4096)); + int64_t len = + std::min(totalLength_ - offset_, static_cast<int64_t>(4_k)); stream_->allocate(offset_, len, false); offset_ += len; } |
