Skip to content
Snippets Groups Projects
Commit 805f329b authored by Lijie Xu's avatar Lijie Xu Committed by Reynold Xin
Browse files

put 'curRequestSize = 0' after 'logDebug' it

This is a minor change. We should first logDebug($curRequestSize) and then set it to 0.

Author: Lijie Xu <csxulijie@gmail.com>

Closes #1477 from JerryLead/patch-1 and squashes the following commits:

aed722d [Lijie Xu] put 'curRequestSize = 0' after 'logDebug' it
parent 7b8cd175
No related branches found
No related tags found
No related merge requests found
...@@ -180,9 +180,9 @@ object BlockFetcherIterator { ...@@ -180,9 +180,9 @@ object BlockFetcherIterator {
if (curRequestSize >= targetRequestSize) { if (curRequestSize >= targetRequestSize) {
// Add this FetchRequest // Add this FetchRequest
remoteRequests += new FetchRequest(address, curBlocks) remoteRequests += new FetchRequest(address, curBlocks)
curRequestSize = 0
curBlocks = new ArrayBuffer[(BlockId, Long)] curBlocks = new ArrayBuffer[(BlockId, Long)]
logDebug(s"Creating fetch request of $curRequestSize at $address") logDebug(s"Creating fetch request of $curRequestSize at $address")
curRequestSize = 0
} }
} }
// Add in the final request // Add in the final request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment